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