手机号码归属地查询
import requests
import json
phone = input("电话号码:")
url = 'http://apis.juhe.cn/mobile/get?phone={}&key=你获取的key'.format(phone)
res = requests.get(url)
json_data = json.loads(res.text)
print("省份:",json_data['result']['province'])
print("城市:",json_data['result']['city'])
print("区号:",json_data['result']['areacode'])
print("邮编:",json_data['result']['zip'])
print("运营商:",json_data['result']['company'])