-
Notifications
You must be signed in to change notification settings - Fork 2
get_maintenance()
unyacat edited this page May 27, 2023
·
3 revisions
事前に告知されている運行状況を返します。
メンテナンス予定を取得して返します。大雪などで運休が予定されているときのみ情報が載ります。
参考: https://github.com/unyacat/westjr/pull/35
- [必須]
area
: str = エリア名
-
AreaMaintenance
- status: int = 情報なし(0) か 情報あり(1)
- notification: Notification
- groupId: int = 告知情報ごとのID?更新されるとIDが変わる?
- text: str = 告知情報
- duration: str = (不明)
- maintenance: Maintenance
- title: str
- text: str
- duration: str
- linkTitle: str
- linkUrl: str
jr = jr = westjr.WestJR()
maintenance = jr.get_maintenance(area="kinki")