Some checks failed
Code Analysis and Production Deploy / analyze (push) Has been skipped
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Successful in 2m2s
Code Analysis and Production Deploy / analyze (pull_request) Failing after 33s
Code Analysis and Production Deploy / deploy-production (pull_request) Has been skipped
Code Analysis and Production Deploy / deploy-test (pull_request) Has been skipped
Require Package Version Change / check (pull_request) Failing after 10s
- Created `import-spielplan.js` to fetch and parse the match schedule from the specified URL, saving the output as JSON. - Added `run-spielplan-import.sh` to automate the execution of the import script and log output. - Introduced `spielplan.html` file to store the downloaded HTML content for further processing.
11 lines
384 B
JavaScript
11 lines
384 B
JavaScript
#!/usr/bin/env node
|
|
|
|
import { importSpielplan } from '../server/utils/spielplan-import.js'
|
|
|
|
const result = await importSpielplan()
|
|
|
|
console.log(`Spielplan gespeichert: ${result.jsonFile}`)
|
|
console.log(`Roh-HTML gespeichert: ${result.htmlFile}`)
|
|
console.log(`Spiele: ${result.matchCount}`)
|
|
console.log(`Zeitraum: ${result.source.season.dateStart} bis ${result.source.season.dateEnd}`)
|