in reply to Re^2: getting LWP and HTML::TokeParser to run
in thread getting started with LWP and HTML::TokeParser
Here is an example which uses WWW::Mechanize to visit the page, populate the field and submit the form. Error checking is left as a exercise for you, this is a short example to get you started:
#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; my $url = 'http://www.kultusportal-bw.de/servlet/PB/menu/1188427_pfhan +dler_yno/index.html'; my $mech = WWW::Mechanize->new(); $mech->get( $url ); $mech->field('einfache_suche','*'); $mech->submit(); # $mech->content now contains the results page.
I can't read German, so you'd better check that you're not breaking any site policy regarding automation.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: getting LWP and HTML::TokeParser to run
by BrimBorium (Friar) on Oct 10, 2010 at 18:04 UTC | |
by marto (Cardinal) on Oct 11, 2010 at 08:15 UTC | |
by afoken (Chancellor) on Oct 11, 2010 at 14:20 UTC |
In Section
Seekers of Perl Wisdom