Last active
August 29, 2015 14:25
-
-
Save levlaz/6e2bb355889179afe1df to your computer and use it in GitHub Desktop.
Gravatar Hash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import code for encoding urls and generating md5 hashes | |
import urllib, hashlib | |
def get_url(email): | |
gravatar_url = "http://www.gravatar.com/avatar/" + hashlib.md5(email.lower()).hexdigest() + "?" | |
return gravatar_url | |
print get_url("[email protected]") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment