和风天气开发平台
import requests
import pprint
import pprint
url = 'https://randomuser.me/api/?results=1'
users = requests.get(url).json()
users = requests.get(url).json()
pprint.pprint(users)
天气预报
weather.py
import sys
import requests
resp = requests.get(f'https://wttr.in/{sys.argv[1].replace(" ", "+")}')
print(resp.text)
postman get方法
天气
https://wis.qq.com/city/getcode?source=pc&province=河南&city=许昌&county=禹州
https://wis.qq.com/weather/common?source=pc&weather_type=observe|forecast_1h|forecast_24h|index|alarm|limit|tips|air|rise&province=河南&city=许昌&country=禹州
邮政编码
https://opendata.baidu.com/post/s?wd=党楼村
https://dey.11185.cn/web/#/idtoolkitaddress
评论
发表评论