Skip to main content

Enter any prefecture name to output the place name, weather, maximum temperature, minimum temperature, and humidity as listed in Yahoo Weather

Project description

tenki

tenkiは、日本の都道府県の名前を入力すると、その都道府県の今日と明日の天気をスクレイピングして表示するPythonパッケージです。Yahoo!天気のサイトから情報を取得します。

インストール

pipを使ってインストールできます。

pip install tenkichecker

使い方

tenkiモジュールをインポートして、kisyou関数に都道府県の名前を渡します。すると、その都道府県の今日と明日の天気がリストとして返されます。 また、その県で発令されている注意報を表示する

from tenkichecker import Weather

weather = Weather("任意の県名")

weather.kisyou()

[["今日", "晴れ", "25℃", "17℃", "10%"], ["明日", "曇り", "23℃", "18℃", "20%"]]

['注意報', '乾燥注意報', '低温注意報']

ライセンス

このパッケージはMITライセンスのもとで公開されています。

作者

gotouyamato s2122100@stu.musashino-u.ac.jp

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

tenkichecker-0.1.8.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tenkichecker-0.1.8-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file tenkichecker-0.1.8.tar.gz.

File metadata

  • Download URL: tenkichecker-0.1.8.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for tenkichecker-0.1.8.tar.gz
Algorithm Hash digest
SHA256 e8a9e586ab035194a589ef6cd87a6dedd2a30b2b509be0a0741216d6323c3b72
MD5 338b625dab5ef8d1020ffa967ac96f6d
BLAKE2b-256 e06b3319161c06dfa635a01f7ca7a455ac7e38089cc8bb663dac1365c2d9bea1

See more details on using hashes here.

File details

Details for the file tenkichecker-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: tenkichecker-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for tenkichecker-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3e4c44e7abfcd9419cafb06836e39d1cb42a336fe1c99c65cc6052fd68ca5e7c
MD5 b4200703e61f595cc138a1d08a152e39
BLAKE2b-256 cd0d2c51bd74e981e04b3aea38514cad8b8000f7671183311ad9051275b59c5e

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