Skip to content

This Python library allows you to extract data from various Formula racing websites effortlessly.

License

Notifications You must be signed in to change notification settings

ryazhenkofc/formulascraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

formulascraper

What is this?

This Python library allows you to extract data from various Formula racing websites effortlessly. Get driver standings, race results, team rankings, and fastest laps for Formula 1, F1 Academy, Formula 2, Formula 3 and Formula E.

Categories:

  • Drivers Standings (drivers)
  • Race Results (races)
  • Teams Standing (teams)
  • Fastest Laps Results (fastest_laps)

Data Availability:

  • Formula 1: All categories since 1950 (Teams Standings since 1958)
  • Formula 1 Academy: All categories since 2023 (expect fastest_laps)
  • Formula 2: All categories since 2017 (expect fastest_laps)
  • Formula 3: All categories since 2019 (expect fastest_laps)
  • Formula E: All categories since 2015 (expect fastest_laps)

Quickstart

Install:

pip install formulascraper

Import:

from formulascraper import Formula1Scraper, get_drivers_data

Extract Data:

Formula 1 data:

scraper = Formula1Scraper()
drivers_data = scraper.get_drivers_data(2021)

Formula 1 Academy data:

academy_scraper = Formula1AcademyScraper()
races_data = academy_scraper.get_races_data(2023)

Formula 2 data:

f2_scraper = Formula2Scraper()
teams_data = f2_scraper.get_teams_data(2012)

Formula 3 data:

f3_scraper = Formula3Scraper()
fastest_laps = f3_scraper.get_drivers_data(2021)

Formula E data:

fe_scraper = FormulaEScraper()
fastest_laps = fe_scraper.get_teams_data(2021)

Documentation:

Classes and Functions:

  • Formula1Scraper: get_drivers_data, get_races_data, get_teams_data, get_fastest_laps_data

  • Formula1AcademyScraper: get_drivers_data, get_races_data, get_teams_data

  • Formula2Scraper: get_drivers_data, get_races_data, get_teams_data

  • Formula3Scraper: get_drivers_data, get_races_data, get_teams_data

  • FormulaEScraper: get_drivers_data, get_races_data, get_teams_data


Author:

ryazhenkofc (GitHub profile: https://github.com/ryazhenkofc)


Additional Resources:


Version Updates

1.2.2 version update

  • small fixes

1.2.1 version update

  • added FormulaE scraping
  • added valuechecks

1.1.2 version update

  • small fixes
  • added docstrings

1.1.1 version update

  • updated tests
  • added categories (Formula 1 Academy, Formula 2, Formula 3)
  • updated README.md

1.0.1 version update (Release)

  • test samples
  • added Formula 1 scraping

About

This Python library allows you to extract data from various Formula racing websites effortlessly.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages