pit-scraper
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Formula 1 Web Scraping Tool

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.

Features

  • 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.

Installation

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

Dependencies

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.

Package Sidebar

Install

npm i pit-scraper

Weekly Downloads

7

Version

1.0.1

License

MIT

Unpacked Size

25.1 kB

Total Files

6

Last publish

Collaborators

  • arvicss