Scrape google...

Status
Not open for further replies.
Joined
Aug 3, 2011
Messages
32
Reaction score
2
Hello There,

Now google isnt taking the parameter num anymore to get more than 10 results...

Has anyone seen a workaround for that?
 
Yes, just turn off Google Instant from Preferences.
 
Code:
http://www.google.com/search?q=buy+viagra&num=100
Still works for me :)


Yes, just turn off Google Instant from Preferences.

2pzwadt.gif
 
Last edited:
There are more ways to do the same thing:
Code:
http://www.google.com/preferences
 
I know that guys, but i'm talking about when programming, o use CURL to crawl google, and preferences save a cookie, how do i retrieve that cookie so i can also use it on curl?
 
Check out the Google search API, you can use it with curl
Code:
http://code.google.com/apis/websearch/docs/
Code:
curl -e http://www.my-ajax-site.com \
'https://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=Paris%20Hilton&key=INSERT-YOUR-KEY'
Never mind, it seems that there is a limitation for 10 results only, when using the API.
You can store the cookie in a file, and use it from there.
 
the problem with the API is that it shows different results than on the web.... :/
 
I know that guys, but i'm talking about when programming, o use CURL to crawl google, and preferences save a cookie, how do i retrieve that cookie so i can also use it on curl?

I stopped using PHP/cURL to scrape Google. Now using Python...way more powerful and my scripts are now much less brittle.
 
Read this:
Code:
http://www.our-picks.com/archives/2007/01/30/google-search-urls-revealed-or-how-to-create-your-own-search-url/
 
I use python too, but i uyse PyCURL + beautifulsoup :p

i'll check a list of old user agents to try
 
seriously? didn't know that! but as for now beautifulsoup is pretty awesome...

And it was just a matter of user agent! hehe fixed it now thx guys
 
try use proxies as on google you get fast a ban and need to verify that you are a human by recapthca
 
Status
Not open for further replies.
Back
Top