Skip to main content

一个简单的天气爬虫,可以获取某个城市简单的天气信息

Project description

SimpleWeather

一个简单的天气爬虫,可以获取某个城市简单的天气信息
使用方法:

pip install SimpleWeather

实例:

import SimpleWeather as sw
shanghai = sw.get_weather("上海") # 获取上海的天气信息,返回一个字典
shanghai = shanghai["today"] # 获取上海当日温度信息
print(shanghai["最高温度"]) # 获取上海的最高温度
print(shanghai["最低温度"]) # 获取上海的最低温度
print(shanghai["风力"]) # 获取上海的风力
print(shanghai["风向"]) # 获取上海的风向
print(shanghai["天气"]) # 获取上海的天气

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

SimpleWeather-1.0.3.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file SimpleWeather-1.0.3.tar.gz.

File metadata

  • Download URL: SimpleWeather-1.0.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.28.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for SimpleWeather-1.0.3.tar.gz
Algorithm Hash digest
SHA256 bdb77326095a4d1833d2eb475a4136ceb209944fa340d36a178b00cea047b98f
MD5 bbe877e84dd5f698a961b45cd4081792
BLAKE2b-256 912a9993be7a9a457ca5963bd4330e9450df7c0d4ba162f8e87b95c9160c99c7

See more details on using hashes here.

Supported by

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