Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle によって変換されたページ (->オリジナル) /