covid-19に関する山梨県の公表済みのデータをスクレイピングにより取得するスクリプトです。
- 山梨県の新型コロナウィルス感染症公式ページよりサイトに表示する情報の元となるデータを取得する
- 新型コロナウイルス感染症に関する発生状況等から取得するデータ
- 陽性患者数
- 陽性患者の属性
- 個々の患者情報が記載されているPDFをテキストに変換し、データを取得する
- 新型コロナウイルス感染症に関する統計情報(発生状況、検査状況、相談件数)から取得するデータ
- 県内の疑似症例の検査状況
- 帰国者・接触者相談センター相談件数
- 新型コロナウイルス感染症専用相談ダイヤル相談件数
- 当リポジトリのGitHub Actions
- GitHub Actionsにより毎時実行し、データに更新がある場合、
data.json
を更新する - データに変更があった場合、対策サイトのGitHubリポジトリに対し
dispatch event
を発生させる
- GitHub Actionsにより毎時実行し、データに更新がある場合、
- dispatch先のリポジトリのGitHub Actions
dispatch event
を受信し、data.json
を更新した上でpull requestを出す- マージ元のブランチは
create-pull-request/patch
という名称で生成され、default
ブランチへのマージを行う
- python version ≥ 3.7
$python -m pip install --upgrade pip
$pip install flake8 pytest pytest-cov "pytest-remotedata>=0.3.1"
$pip install -r requirements.txt
スクリプト実行
$python -m src
テスト実行
$pytest -v --cov=.
本ソフトウェアは、MITライセンスの元提供されています。