in reply to Perl mechanize get Error!
I also recommend getting the firebug firefox extension and manually inspecting the page for each thing you want to access. For example, the url for 'Latest News' is http://www.truro-penwith.ac.uk/category/news/ which I determined by using the firebug extension..$mech->dump_text;
UPDATE: Also, simply:$mech->get('http://www.truro-penwith.ac.uk/category/news/');
worked for me.. you don't need to do anything with headers..my $mech = WWW::Mechanize->new(); $mech->get('http://www.truro-penwith.ac.uk/'); $mech->dump_text;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl mechanize get Error!
by Anonymous Monk on Jan 04, 2014 at 08:26 UTC | |
by PerlSufi (Friar) on Jan 06, 2014 at 15:04 UTC |