Oct 2, 2012, 1:16 AM
Perl::Mechanize - how to loop within this [example]
i am heading for Perl-programming. I want to learn something
Well i am currently working on a small solution: I have tried various tutorials
(examples of Mechanize - that i have found on the CPAN) not oll of them work - some of them are broken!
Now i try t o get some real-world-task!
Especially interesting for me as a PHP/Perl-beginner
what we have so far: Well the harvesting task should be no problem if i
take WWW::Mechanize - particularly for doing the form based search and selecting the individual entries.
see the page: http://katholisch.at/content/site/pfarrfinder/index.html
Here you can see for more results..
Hmm - i guess that the algorithm would be basically 2 nested loops:
the outer loop runs the form based search,
the inner loop processes the search results.
i have approximatley 10000 pages to parse
they are organized like that:
$mech->follow_link(url_regex => qr/webgrab_path=http://evs2000.*?
Id=d+$/, n => $result_nbr);
well what do you think?
(This post was edited by dilbert on Oct 2, 2012, 1:08 PM)