Metadata-Version: 2.1
Name: formulascraper
Version: 1.0.1
Summary: A Python library for parsing Formula data.
License: MIT
Author: ryazhenkofc
Author-email: ryazhenkofc@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: beautifulsoup4 (>=4.12.2,<5.0.0)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Description-Content-Type: text/markdown

# formulascraper #

## What is this? ##
This module extract Formula 1 data, encompassing drivers, races, teams, and fastest laps, through a parser.

Categories from which you can pull data:

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

Each category is since 1950, but Teams Standings only since 1958


## Quick Guide ##
The module is based on the following structure:

    
    from formulascraper import FormulaOneParser, parse_drivers_data

	parser = FormulaOneParser()
	drivers_data = parser.parse_drivers_data({YEAR})
    
Which Python provides by standard.


----------


### Using ###

**Installation**

Using the library is as simple and convenient as possible:
Installing the package with `pip`:

	pip install formulascraper

**Getting Started**

Examples of all operations:

Import the `FormulaOneParser` class:

	from formulascraper import FormulaOneParser

Initialize a `parser` object:

	parser = FormulaOneParser()

Parsing Data
Call the parsing methods on the parser object, passing in the year:

**`parse_{category}_data` takes as an argument only one argument which is `{YEAR}`**

	drivers_data = parser.parse_drivers_data(2021)
	races_data = parser.parse_races_data(2023)
	teams_data = parser.parse_teams_data(2018) 
	fastest_laps = parser.parse_fastest_laps_data(1999)


----------

## Developer ##
My profile: [ryazhenkofc](https://github.com/ryazhenkofc) 

