从天气预报网页API获取天气预报数据

版权声明:数据版权归中央气象局所有,仅供学习交流之用

1 获取相关接口
通过解析html页面后,发现有如下3个接口:

省份获取:http://www.nmc.cn/rest/province
城市获取:http://www.nmc.cn/rest/province/{省份代码}
城市天气预报获取:http://www.nmc.cn/rest/weather?stationid={城市代码}

posted @ 2021-09-01 10:43  流弊的小涛  阅读(266)  评论(0编辑  收藏  举报