weathercn:
通过中国天气网weather.com.cn查询天气
weathercn.py 主文件
city.py 城市编号用于查询
heweather:
heweather.net的API,需要注册后获得APIKey
tianqiapi:
免费天气API接口
tianqiapiNow.py 当天天气(3小时更新一次)
https://www.tianqiapi.com/api/?version=v6&city=城市
tianqiapiWeek.py 一周天气(3小时更新一次)
https://www.tianqiapi.com/api/?version=v1&city=城市
tianqiapi.py 两个查询功能合并(3小时更新一次)
API接口文档:
https://www.tianqiapi.com/?action=v1
https://www.tianqiapi.com/?action=v6
现在查询需要添加appid和appsecret
否则直接报错:
errcode 100
errmsg "参数不完整: appid或appsecret"
例:https://www.tianqiapi.com/api/?version=v1&cityid=城市&appid=1001&appsecret=5566
2019/09/04更新接口
https://www.tianqiapi.com/api/?version=v6&city=城市&appid=[appid]&appsecret=[appsecret]
-
Notifications
You must be signed in to change notification settings - Fork 0
0xFlag/weatherPy3
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
python3写的一些天气查询api
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published