def getHash(url): '''return a unique and stable hash value from hashing the website url''' m = hashlib.sha1(url.encode('utf-8')) return m.hexdigest()