feat: replace Kaggle CSV with Wikipedia scraper for historical match data
Add scripts/scrape-wikipedia.ts that fetches all 22 World Cups (1930–2022) from English Wikipedia via MediaWiki API, handles group sub-pages, AET/penalty detection, and goal parsing, writing openfootball-format JSON to app/data/openfootball/. Rewrite scripts/seed.ts to read these local JSON files instead of the Kaggle CSV, producing 965 matches and 2716 goals with per-group assignments for all historical tournaments (enabling group standings on tournament pages). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"stadiums": [
|
||||
{
|
||||
"name": "Jeju World Cup Stadium",
|
||||
"city": "Seogwipo"
|
||||
},
|
||||
{
|
||||
"name": "Big Swan Stadium",
|
||||
"city": "Niigata"
|
||||
},
|
||||
{
|
||||
"name": "Big Eye Stadium",
|
||||
"city": "Ōita"
|
||||
},
|
||||
{
|
||||
"name": "Suwon World Cup Stadium",
|
||||
"city": "Suwon"
|
||||
},
|
||||
{
|
||||
"name": "Jeonju World Cup Stadium",
|
||||
"city": "Jeonju"
|
||||
},
|
||||
{
|
||||
"name": "Kobe Wing Stadium",
|
||||
"city": "Kobe"
|
||||
},
|
||||
{
|
||||
"name": "Miyagi Stadium",
|
||||
"city": "Rifu"
|
||||
},
|
||||
{
|
||||
"name": "Daejeon World Cup Stadium",
|
||||
"city": "Daejeon"
|
||||
},
|
||||
{
|
||||
"name": "Stadium Ecopa",
|
||||
"city": "Fukuroi"
|
||||
},
|
||||
{
|
||||
"name": "Munsu Cup Stadium",
|
||||
"city": "Ulsan"
|
||||
},
|
||||
{
|
||||
"name": "Gwangju World Cup Stadium",
|
||||
"city": "Gwangju"
|
||||
},
|
||||
{
|
||||
"name": "Nagai Stadium",
|
||||
"city": "Osaka"
|
||||
},
|
||||
{
|
||||
"name": "Seoul World Cup Stadium",
|
||||
"city": "Seoul"
|
||||
},
|
||||
{
|
||||
"name": "Saitama Stadium",
|
||||
"city": "Saitama"
|
||||
},
|
||||
{
|
||||
"name": "Daegu World Cup Stadium",
|
||||
"city": "Daegu"
|
||||
},
|
||||
{
|
||||
"name": "International Stadium",
|
||||
"city": "Yokohama"
|
||||
},
|
||||
{
|
||||
"name": "Busan Asiad Main Stadium",
|
||||
"city": "Busan"
|
||||
},
|
||||
{
|
||||
"name": "Incheon World Cup Stadium",
|
||||
"city": "Incheon"
|
||||
},
|
||||
{
|
||||
"name": "Munsu Football Stadium",
|
||||
"city": "Ulsan"
|
||||
},
|
||||
{
|
||||
"name": "Niigata Stadium",
|
||||
"city": "Niigata"
|
||||
},
|
||||
{
|
||||
"name": "Sapporo Dome",
|
||||
"city": "Sapporo"
|
||||
},
|
||||
{
|
||||
"name": "Kashima Soccer Stadium",
|
||||
"city": "Ibaraki"
|
||||
},
|
||||
{
|
||||
"name": "Ecopa Stadium",
|
||||
"city": "Shizuoka"
|
||||
},
|
||||
{
|
||||
"name": "International Stadium Yokohama",
|
||||
"city": "Yokohama"
|
||||
},
|
||||
{
|
||||
"name": "Wing Stadium",
|
||||
"city": "Kobe"
|
||||
},
|
||||
{
|
||||
"name": "Niigata Big Swan Stadium",
|
||||
"city": "Niigata"
|
||||
},
|
||||
{
|
||||
"name": "Ōita Big Eye Stadium",
|
||||
"city": "Ōita"
|
||||
},
|
||||
{
|
||||
"name": "Shizuoka Ecopa Stadium",
|
||||
"city": "Fukuroi, Shizuoka"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user