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.1.tar.gz (5.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: xiaoming-weather-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 51c5f5158b2d394ff7b198611a089d454f6a210b3f86a8be6e7bc06a0caf121b
MD5 ba5d60834b0152415e944c7406ddadf0
BLAKE2b-256 3b30505ea1d0dde8dfd00cc2f537517a3f0bd44e4edd21086834aac8f2bec09b

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