找了好久,好久,在微信里面想做一个类似互动的板块,其中有一项是实时的获取天气,可这个天气的API 着实让 me 头疼,找了好几个 就是不能用, 今天 发现了一个博客里面 ,差不多合乎要求,所以就收录下来,以便不时只需,
中华万年历:
http://wthrcdn.etouch.cn/weather_mini?city=北京
通过城市名字获得天气数据,json数据
http://wthrcdn.etouch.cn/weather_mini?citykey=101010100
通过城市id获得天气数据,json数据
金山导航:
http:\\pm25.moji001.com\aqi\index-1623.html
小米:
http://weatherapi.market.xiaomi.com/wtr-v2/weather?cityId=101121301
中央天气预报:
http://weather.51wnl.com/weatherinfo/GetMoreWeather?cityCode=101040100&weatherType=0
http://weather.51wnl.com/weatherinfo/GetMoreWeather?cityCode=101040100&weatherType=1
别的地址:
http://wthrcdn.etouch.cn/WeatherApi?citykey=101010100
通过城市id获得天气数据,xml文件数据,
当错误时会有<error>节点
http://wthrcdn.etouch.cn/WeatherApi?city=北京
通过城市名字获得天气数据,xml文件数据