Any API for google cache search?

I am trying to search Google Cache, so I need to run this query:

http://webcache.googleusercontent.com/search?q=cache:news.ycombinator.com/news+hacker+news 

And get some content, like a timestamp from a page. But when I do this with curl (ruby), it gives a rejected resolved error, i.e. The scraper is blocked and this was expected.

So, is there a way to search google cache (or API or some kind of workaround copy) and extract some information like timestamp?

+7
ruby-on-rails google-search-api
source share
2 answers

I did not have an API, but I can clear it using hpricot or nokogiri in rails (curl in Rails permits denial of permission). I will put the code as soon as I figure out how to extract the timestamp from the above URL using these gems.

Anyone have a better solution?

+2
source share
0
source share

All Articles