in reply to Scraping Webpage
The final get (imported by LWP::Simple) get the doc that is splitted and, if flip-flop is on, map do the print.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);"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Scraping Webpage
by Anonymous Monk on Nov 19, 2013 at 10:15 UTC |