Don't ask to ask, just ask | |
PerlMonks |
Re: Extract file links from Google search resultsby Anonymous Monk |
on Jul 26, 2007 at 21:49 UTC ( [id://629008]=note: print w/replies, xml ) | Need Help?? |
Something similar with the general-purpose xml/html extract utility xmlgrep:
GET -HUser-Agent:Mozilla/5.0 'http://www.google.com/search?hl=hr&q=bbbike&btnG=Google+pretraga&lr=' | xmlgrep -parse-html -as-html '//a[@class="l"]/@href' Basically, xmlgrep is just a grep which uses XPath expressions. It can be downloaded here.
In Section
Cool Uses for Perl
|
|