Compare commits
No commits in common. "3998f5512c8fe959bb0afe5b0cb3c9db72ddb4a1" and "1c6ab981b208525a7c253ff59119594bcddb48fc" have entirely different histories.
3998f5512c
...
1c6ab981b2
|
@ -5,7 +5,7 @@ import requests
|
|||
def hash_email(email):
|
||||
return hashlib.sha256(email.encode('utf-8')).hexdigest()
|
||||
|
||||
def fetch_gravatar(email="matt@trtmn.com", size=1000, rating="g"):
|
||||
def fetch_gravatar(email="", size=1000, rating="g"):
|
||||
url = f"https://www.gravatar.com/avatar/{hash_email(email)}?s={size}&r={rating}"
|
||||
print(url)
|
||||
response = requests.get(url)
|
||||
|
@ -34,4 +34,4 @@ def variety_of_sizes(email,sizes=[1000,1500,800,300,200,150,100]):
|
|||
|
||||
if __name__ == '__main__':
|
||||
# print( hash_email(email))
|
||||
variety_of_sizes("matt@trtmn.com")
|
||||
variety_of_sizes("")
|
||||
|
|
Loading…
Reference in New Issue
Block a user