Skip to main content

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

Project description

SimpleWeather

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

import SimpleWeather as sw
shanghai = sw.getWeather("上海") # 获取上海的天气信息,返回一个字典
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.0.tar.gz (2.1 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: SimpleWeather-1.0.0.tar.gz
  • Upload date:
  • Size: 2.1 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.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for SimpleWeather-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9a34fa4d589f224ebf1a71ab777fc061b68b02ef7fcd1cab5461375e48ef7f42
MD5 398440ac8907fe596f24397f91a17d89
BLAKE2b-256 ea7770642265b02753f6b616590c42710d2dda4d37d3e501aeb33ed83ae257f2

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