CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner: Perl::Mechanize - how to loop within this [example]: Edit Log


Oct 2, 2012, 1:16 AM

Views: 3230
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:
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)

Edit Log:
Post edited by dilbert (User) on Oct 2, 2012, 1:08 PM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives