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

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

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