Skip to main content

A Python package to scrape Indycar session data

Project description

IndyCarPy

IndyCarPy is a Python package designed to scrape IndyCar session data from the official IndyCar website. It provides functionalities to retrieve information about races, practices, qualifications, and warm-up sessions, as well as the records associated with these sessions.

Features

  • Session Data Retrieval: Fetch data about IndyCar sessions including races, practices, qualifications, and warm-ups.
  • Data Cleaning and Preparation: Clean and prepare the retrieved data for further analysis or storage.
  • Export to CSV: Option to export the data to CSV format for easy integration with other tools or databases.

Installation

You can install IndyCarPy using pip:

pip install indycarpy

Make sure you have the required dependencies installed: pandas, requests, tqdm, and numpy.

Usage

The

import indycarpy

# Retrieve race session data between specific years
indycarpy.get_sessions_records(from_year=1996, to_year=2024, session_type="R", data_format="df")

# Clean session records data
cleaned_data = indycarpy.clean_sessions_records(sessions_df)

Data Files

This package includes a data/race_track.csv file containing information about the track names for each event, which is utilized during data retrieval.

Contributing

Contributions to IndyCarPy are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on GitHub.

License

IndyCarPy is licensed under the GNU General Public License v3.0. See the LICENSE file for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

indycarpy-0.2.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

indycarpy-0.2.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file indycarpy-0.2.0.tar.gz.

File metadata

  • Download URL: indycarpy-0.2.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for indycarpy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 18762685d5bfa131525b11a46f942e140adeca46c808733e679ccf3f096151bd
MD5 256c7c1a66655eb6369295ded81773a9
BLAKE2b-256 04036d8956d5766edf1206e49ea447417604a0dcd6dded62a330bdd5536f74f6

See more details on using hashes here.

File details

Details for the file indycarpy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: indycarpy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for indycarpy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85130e51dc80565ae7a715f45575043a176af6f2f919bbaaa09b1bcce8879b1f
MD5 53744fc68c141223d72e0f46a34f8db8
BLAKE2b-256 f7268f70cc897ba3cb8c85d16fc08bc08dd3c25a8b7141ed13eb6192f093661a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page