Api/Scrape: Implement serverside api route to fetch official f1.com data
All checks were successful
Build Formula11 Docker Image / pocketbase-docker (push) Successful in 37s

This commit is contained in:
2025-03-25 20:09:54 +01:00
parent 1d7dff1b53
commit 7ab818dd48
2 changed files with 127 additions and 0 deletions

View File

@ -1,6 +1,8 @@
import type { ScrapedDriverStanding, ScrapedRaceResult, ScrapedTeamStanding } from "$lib/schema";
import * as cheerio from "cheerio";
// TODO: Validate the generated stuff
export const base_url: string = "https://www.formula1.com/en/results/2025";
/**