Skip to content

Instantly share code, notes, and snippets.

@binary-signal
Created October 31, 2017 07:21
Show Gist options
  • Save binary-signal/30fd5ea0a3923ede9d9a2e937ca4804b to your computer and use it in GitHub Desktop.
Save binary-signal/30fd5ea0a3923ede9d9a2e937ca4804b to your computer and use it in GitHub Desktop.
get the md5 hash of a url
def hashurl(url):
m = hashlib.md5()
m.update(url.encode('utf-8'))
return m.hexdigest()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment