def get_avatar(email, size=24):

    if not email:
        return ''

    hash_ = hashlib.md5(email.lower().encode('utf-8')).hexdigest()
    params = urllib.parse.urlencode({'d': 'mm', 's': str(size)})
    gravatar_url = "http://www.gravatar.com/avatar/" + hash_ + "?" + params
    return gravatar_url
Gets the avatar for the given user.
dataset/ETHPy150Open heiskr/sagefy/server/models/user.py/get_avatar