• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

1. flash.weather

简要网站:http://flash.weather.com.cn/wmaps/xml/xian.xml

最后的Xian.xml是city pinyin.xml,比如要获取北京的天气,需要填写beijing.xml等等,然后拼接网址就可以访问了。

在这里我得到了常州: http://flash.weather.com.cn/wmaps/xml/changzhou.xml.的天气摘要信息

bwdnq5vvfm24477.png

返回的信息是xml格式的,可以使用现成的xml解析库解析,也可以手工解析。

每个xml地级市标记都有一个url子标记(例如,url='101191102 ')来获取更详细的信息。

网站:http://t.weather.sojson.com/api/weather/city/

之前获得的url标签值拼接在URL的尾部,组合成:http://t.weather.sojson.com/api/weather/city/101191102.

pjtf0myzjon4478.png

返回的数据是json格式的,每个语言平台都有很好的解析库可以使用。

以下是json格式的预览。

oti1yuuwnkm4479.png

Link to comment
Share on other sites