Question

I have large amount of locally stored Google search results for wide variety of search queries about my business so that at the end of the month I can do aggregate about where my website stands for those wide variety of search queries. I tried to use

djangosnippets.org/snippets/221/

but that does not look to be working. I am no where close to it. Is there a better way to do this ?

Note:

  1. I have all the search results store as html pages in a directory!
  2. I have a cronjob running daily to fetch the html page of the result generated
Was it helpful?

Solution

Looks like the google url has changed.

Replace line #66 with

gurl = 'http://toolbarqueries.google.com/tbr?client=navclient-auto&ch=%s&features=Rank&q=info:%s' % (hsh,urllib.quote(URL))

works for me

Also, I am confused with what do you expect from this script. PageRank ranks website not search queries. If you want to see how high your website is on different google queries that's a different story and has little to do with PageRank. This script will tell you what's the pagerank of particular website, whatever the search query which will not tell you the relative position of your website for this particular query. These are different things.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top