No updates detected yet. GitHub releases will appear here.
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗コナミスポーツクラブ全施設の直近1週間のスタジオプログラムを、「日付」「プログラム名」 「担当インストラクター名」で横断検索できる非公式Webアプリです。
データ元: https://information.konamisportsclub.jp/ksc/search_program/ (公式ページ)
robots.txtで全クローラーを拒否し、<meta name="robots" content="noindex,nofollow">
も設定済みです)。リポジトリを完全非公開にしたい場合はGitHub Pagesを使わず、Private
リポジトリ + ローカルサーバー、またはGitHub Pro/Team以上のPrivate Pages機能をご利用
ください。.
├── scripts/
│ ├── collect.py # データ収集スクリプト
│ └── requirements.txt
├── .github/workflows/
│ └── collect.yml # 毎日5:00 JSTに自動収集してprograms.jsonを更新
├── data/
│ └── programs.json # 収集したプログラムデータ(生成物)
├── index.html / app.js / style.css # 検索Webアプリ本体(ビルド不要)
├── manifest.json / sw.js / icons/ # PWA対応
└── robots.txt
scripts/collect.py は以下を行います。
PREFECTURE_DATA から都道府県・施設の対応表を取得data/programs.json に保存failed_pages に記録pip install -r scripts/requirements.txt
# 動作確認(数ページ=数施設分のみ取得)
python scripts/collect.py --max-pages 3
# 全件収集
python scripts/collect.py
出力は既定で data/programs.json です。--out で出力先を変更できます。
.github/workflows/collect.yml が毎日 5:00 JST (20:00 UTC) に自動実行され、
data/programs.json に変更があればリポジトリへコミット・pushします。
Collect KONAMI programs を
Run workflow で手動起動できます(max_pages を指定すると件数を絞ってテスト可能)max_pages を小さい値にして手動実行し、正しく動くことを
確認してから定期実行に任せることを推奨しますSettings > Pages で Deploy from a branch を選択し、ブランチをルート(/)で指定https://<ユーザー名>.github.io/<リポジトリ名>/ になりますlocalStorage に保存し、次回アクセス時に復元prefers-color-scheme)対応、iOSでの自動ズームを防ぐ16px以上のフォント、
44px以上のタップ領域