中国国家气象局天气预报接口总共提供了三个:
http://www.weather.com.cn/data/sk/101020100.html
http://www.weather.com.cn/data/cityinfo/101020100.html
http://m.weather.com.cn/data/101010100.html
最详细的信息来自第三个接口。上面url中的101020100是城市代码,这里是上海的城市代码。只需要改变城市代码,就可以得到所在城市的天气信息。
但是第三接口的数据停止更新了,新的接口地址换成了
http://m.weather.com.cn/atad/101020100.html