都异步加载的数据,在页面可以看到这下面这个地址,从地址上面获取的数据
https://qweather.ssl.dhrest.com/sed_api_weather_info.php?code=101280602¶m=pm25&v=1&app=hao360&_jsonp=__jsonp22__&t=2507666
__jsonp22__({"pubdate":"2017-09-05","pubtime":"11:00:00","time":1504600147,"area":[["\u5e7f\u4e1c","28"],["\u6df1\u5733","2806"],["\u7f57\u6e56","101280602"]],"pm25":[]});
解码:
__jsonp22__({"pubdate":"2017-09-05","pubtime":"11:00:00","time":1504600147,"area":[["广东","28"],["深圳","2806"],["罗湖","101280602"]],"pm25":[]});
使用区编码参数:code
如
101280602 罗湖
101280603 深圳
如果想获取到数据,通过地区编码就可以获取了
谢谢
以上海为例 其实是下面网址
http://www.so.com/s?ie=utf-8&q=%E4%B8%8A%E6%B5%B7%E5%A4%A9%E6%B0%94%E9%A2%84%E6%8A%A5&src=hao_weather
360还需要转码的吧
友情提示,发布天气信息又法律管制