About

Welcome to Panela, Matt Harrison's take on mostly Open Source, Linux, Python, innovation in those areas, other buzzwords and Dick Proenneke. It comes complete with the illustrations as needed. Note the opinions expressed here are merely my opinions and not the opinions of my employer.

about Matt

Calendar

««Nov 2009»»
SMTWTFS
1234567
8910
11
12
1314
151617
18
192021
22232425262728
2930

Mailing List

My RSS Feeds








Script to find rank in the internet

posted 2005.09.30 Fri
Because I'm fascinated by how your ranking in certain search engines can fluctuate so rapidly over even one day, I hacked out a script (easier than scanning through pages of results). Pass the script a query (in quotes) and the url (can just be the first unique characters of it) you want to know the rank of, and it will tell you the rank.

Yes, this is a hack. Yes there are other tools that do this. Yes, it requires Beautiful Soup (which was really straightforward to use).

Here's an example:

$ python find.py proenneke http://panela
http://www.google.com/search?q=proenneke&start=0
found! :http://panela
8

Get it here

tags:    

links: digg this    del.icio.us    reddit




1. Fuzzyman left...

A similar tool that uses the google API is my little snippet 'googlerank'.

http://www.voidspace.org.uk/python/recipebook.shtml#google