Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Extract file links from Google search results

by Anonymous Monk
on Jul 26, 2007 at 21:49 UTC ( #629008=note: print w/replies, xml ) Need Help??


in reply to Extract file links from Google search results

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://629008]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2021-06-21 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (98 votes). Check out past polls.

    Notices?