refactor: rename data/openfootball → data/wikipedia, drop data/kaggle
Move world_cup.csv to app/data/ directly (the only remaining Kaggle file used by seed.ts for tournament metadata). Delete the rest of the Kaggle CSVs. Update path constants in scrape-wikipedia.ts and seed.ts accordingly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@ import path from 'path'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
const DATA_DIR = path.join(__dirname, '../app/data/openfootball')
|
||||
const DATA_DIR = path.join(__dirname, '../app/data/wikipedia')
|
||||
|
||||
const YEARS = [
|
||||
1930,1934,1938,1950,1954,1958,1962,1966,1970,1974,
|
||||
@@ -543,7 +543,7 @@ async function main() {
|
||||
await delay(600)
|
||||
}
|
||||
|
||||
console.log('\nDone! Files written to app/data/openfootball/{year}/')
|
||||
console.log('\nDone! Files written to app/data/wikipedia/{year}/')
|
||||
}
|
||||
|
||||
main().catch(e => { console.error(e); process.exit(1) })
|
||||
|
||||
Reference in New Issue
Block a user