Skip to main content

Xiaoming weather provides personalized weather data strings for chinese user.

Project description

Xiaoming-weather

Xiaoming weather provides personalized weather data strings for chinese user. Its weather data is captured from http://www.weather.com.cn

Usage

Following query on terminal will provide you the weather details of the city you provided by option city code. You can get your city code in the URL by finding the city name on http://www.weather.com.cn. For example, China city ChongQing homepage is http://www.weather.com.cn/weather/101040100.shtml, the city code is 101040100.

zhangyd@zhangyd-ubuntu:~$ xiaoming-weather -q 101160407
小明天气:今天17℃~24℃,明天阴转多云,比今天凉一点,似乎要降温了。
明天: 阴转多云
温度: 10℃~20℃
风力: 3-4级转<3级

Help

zhangyd@zhangyd-ubuntu:~$ xiaoming-weather --help
usage: xiaoming-weather [-h] [-q city-code]

XiaoMing Weather

optional arguments:
  -h, --help            show this help message and exit
  -q city-code, --query city-code
                        The specific city code from http://www.weather.com.cn

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xiaoming-weather-1.0.2.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file xiaoming-weather-1.0.2.tar.gz.

File metadata

  • Download URL: xiaoming-weather-1.0.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/2.7.17

File hashes

Hashes for xiaoming-weather-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5257fb66362c6b08f4d35e6160c3b5d195807d87f20ffce2ef06921c6b1a3ade
MD5 c37d1994de7d8099cc010b3f225b2361
BLAKE2b-256 dd2262412c4c25fe0436e2afbd23f33a56f1dd76d1afba36ba82fe8c71c41def

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page