in reply to Scraping Webpage

as taint said is a LWP task and many times an LWP::Simple one.

Many times this tasks can be hacked in quasi-oneliner,as in:
perl -e "use LWP::Simple; my $word = $ARGV[0];map { print qq($_ ) if / +<h2.*$word<\/h2>/../Link/ } split /\n/, get('http://dictionary.refer +ence.com/browse/'.$word);"
The final get (imported by LWP::Simple) get the doc that is splitted and, if flip-flop is on, map do the print.

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Scraping Webpage
by Anonymous Monk on Nov 19, 2013 at 10:15 UTC
    Have you visted the OPs url? Its full of javascript; WWW::Mechanize is built out of LWP , neither can help with javascript