Meandering Your Google Neighborhood
Google Neighborhood attempts to detangle the Web by building a âneighborhoodâ of sites around a URL.
Itâs called the World Wide Web, not the World Wide Straight Line. Sites link to other sites, building a âwebâ of sites. And what a tangled web we weave.
Google Neighborhood attempts to detangle some small portion of the Web by using the Google API to find sites related to a URL you provide, scraping the links on the sites returned, and building a âneighborhoodâ of sites that link both the original URL and each other.
If youâd like to give this hack a whirl without having to run it yourself, thereâs a live version available at http://diveintomark.org/archives/2002/06/04.html#who_are_the_people_in_your_neighborhood. The source code (included below) for Google Neighborhood is available for download from http://diveintomark.org/projects/misc/neighbor.py.txt.
Google Neighborhood is written in the Python (http://www.python.org) programming language. Your system will need to have Python installed for you to run this hack.
""" neighbor.cgi Blogroll finder and aggregator """ _ _author_ _ = "Mark Pilgrim (firstname.lastname@example.org)" _ _copyright_ _ = "Copyright 2002, Mark Pilgrim" _ _license_ _ = "Python" try: import timeoutsocket # http://www.timo-tasi.org/python/timeoutsocket.py timeoutsocket.setDefaultSocketTimeout(10) except: pass import urllib, urlparse, os, time, operator, sys, pickle, re, cgi, time from sgmllib import SGMLParser ...