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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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