{
        "code":0,
        "data":{
            "country":"\u65e5\u672c",
            "country_id":"JP",
            "area":"",
            "area_id":"",
            "region":"",
            "region_id":"",
            "city":"",
            "city_id":"",
            "county":"",
            "county_id":"",
            "isp":"",
            "isp_id":"",
            "ip":"58.12.23.23"
        }
    }

def get_location_from_taobao(ip):
    """
    {
        "code":0,
        "data":{
            "country":"\u65e5\u672c",
            "country_id":"JP",
            "area":"",
            "area_id":"",
            "region":"",
            "region_id":"",
            "city":"",
            "city_id":"",
            "county":"",
            "county_id":"",
            "isp":"",
            "isp_id":"",
            "ip":"58.12.23.23"
        }
    }
    """
    global taobao
    response = requests.get(taobao % ip)
    if not response.status_code == 200:
        return
    l = json.loads(response.content)
    if not l['code'] == 0:
        return
    l = l['data']
    return ("%s,%s,%s,%s,%s" % (l['country'], l['area'], l['region'], l['city'], l['isp'])).encode('utf8')