Skip to content

keysona/WeatherServer

Repository files navigation

WeatherServer

This is a WeatherServer.

api

根据城市名称来查询天气数据,或者城市id。

为此需要先获得所有城市名与id,由于中国天气网关闭原来的查询接口,所以需要解析下面的xml文件。

必要的城市名与id在这里

接口调用形式:

  • 城市ID
  • 城市名称

http://www.keysona.com/api/weather/today/countryName/广州

http://www.keysona.com/api/weather/today/countryId/280101

Note

To install scrapy in ubuntu, you should:

sudo apt-get install -y libxml2-dev libxslt1-dev libffi-dev
pip install lxml

About

This is a WeatherServer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published