import json
import urllib.request

# GitHub raw コンテンツから JavaScript カンファレンスデータを取得
url = "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/javascript/2025.json"
with urllib.request.urlopen(url) as res:
    conferences = json.loads(res.read())

# CFP 募集中のカンファレンスだけ抽出
with_cfp = [c for c in conferences if c.get("cfpEndDate")]
print(f"CFP 募集中: {len(with_cfp)} 件")
for c in with_cfp[:5]:
    print(f"  {c['name']} ({c['country']}) - CFP 締切: {c['cfpEndDate']}")