Python Image Requests

← Back

# import code for encoding urls and generating md5 hashes
import urllib, hashlib

# Set your variables here
email = "someone@somewhere.com"
default = "https://www.example.com/default.jpg"
size = 40

# construct the url
gravatar_url = "https://www.gravatar.com/avatar/" + hashlib.md5(email.lower()).hexdigest() + "?"
gravatar_url += urllib.urlencode({'d':default, 's':str(size)})
小米彩票投注 湖北快3代理 亿信彩票娱乐 内蒙古快3 北京pk10 内蒙古快三走势图 500万彩票 亚洲彩票 优优彩票官网 贵州快3走势