5dcd22ad22
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>
90 lines
1.3 KiB
JSON
90 lines
1.3 KiB
JSON
{
|
|
"groups": [
|
|
{
|
|
"name": "Group 1",
|
|
"teams": [
|
|
"Italy",
|
|
"Poland",
|
|
"Peru",
|
|
"Cameroon"
|
|
]
|
|
},
|
|
{
|
|
"name": "Group 2",
|
|
"teams": [
|
|
"West Germany",
|
|
"Algeria",
|
|
"Chile",
|
|
"Austria"
|
|
]
|
|
},
|
|
{
|
|
"name": "Group 3",
|
|
"teams": [
|
|
"Argentina",
|
|
"Belgium",
|
|
"Hungary",
|
|
"El Salvador"
|
|
]
|
|
},
|
|
{
|
|
"name": "Group 4",
|
|
"teams": [
|
|
"England",
|
|
"France",
|
|
"Czechoslovakia",
|
|
"Kuwait"
|
|
]
|
|
},
|
|
{
|
|
"name": "Group 5",
|
|
"teams": [
|
|
"Spain",
|
|
"Honduras",
|
|
"Yugoslavia",
|
|
"Northern Ireland"
|
|
]
|
|
},
|
|
{
|
|
"name": "Group 6",
|
|
"teams": [
|
|
"Brazil",
|
|
"Soviet Union",
|
|
"Scotland",
|
|
"New Zealand"
|
|
]
|
|
},
|
|
{
|
|
"name": "Group A",
|
|
"teams": [
|
|
"Poland",
|
|
"Belgium",
|
|
"Soviet Union"
|
|
]
|
|
},
|
|
{
|
|
"name": "Group B",
|
|
"teams": [
|
|
"West Germany",
|
|
"England",
|
|
"Spain"
|
|
]
|
|
},
|
|
{
|
|
"name": "Group C",
|
|
"teams": [
|
|
"Italy",
|
|
"Argentina",
|
|
"Brazil"
|
|
]
|
|
},
|
|
{
|
|
"name": "Group D",
|
|
"teams": [
|
|
"Austria",
|
|
"France",
|
|
"Northern Ireland"
|
|
]
|
|
}
|
|
]
|
|
} |