'By liuwons (https://github.com/liuwons)
å¢å è·åç¥ä¹è¯çšæ·çå€Žåurl
scaleå¯¹åºçå€Žåå°ºå¯ž:
1 - 25Ã25
3 - 75Ã75
4 - 100Ã100
6 - 150Ã150
10 - 250Ã250'

def get_head_img_url(self, scale=4):

    scale_list = [1, 3, 4, 6, 10]
    scale_name = '0s0ml0t000b'
    if (self.user_url == None):
        print "I'm    anonymous    user."
        return None
    else:
        if (scale not in scale_list):
            print 'Illegal    scale.'
            return None
        if (self.soup == None):
            self.parser()
        soup = self.soup
        url = soup.find('img', class_='Avatar    Avatar--l')['src']
        return ((url[:(-5)] + scale_name[scale]) + url[(-4):])
