This project is a web scraping tool designed to fetch Formula 1 race results from the official Formula 1 website (formula1.com). The tool scrapes the race results, including details for each Grand Prix and session, for a given year. The core function, .getChampionshipResultByYear(year)
, allows users to retrieve the full list of results for any specified season.
- Scrapes race results from Formula 1's official website.
- Retrieves full race results including every Grand Prix and session (e.g., qualifying, race).
- Allows input of a specific year to fetch results for that season.
To install and use this tool, clone the repository and install the necessary dependencies:
git clone https://github.com/arvicss/pit-scraper.git
cd formula1-web-scraper
pnpm install
The following npm libraries are used in this project:
- axios: For making HTTP requests to fetch HTML data.
- cheerio: For parsing and scraping the HTML to extract relevant race information.
- lodash: For utility functions to simplify data manipulation.