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

import indycarpy

# Retrieve session data between specific years
sessions_df = indycarpy.get_sessions_record(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.0.1.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.0.1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: indycarpy-0.0.1.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.0.1.tar.gz
Algorithm Hash digest
SHA256 c019cfe6c057681bd1e456a2fe9ae0e23cc94c54c14e46d70a70f8cf175bc856
MD5 585429b0e1c9160b8dcbc9f983058482
BLAKE2b-256 4ca984164b5c40244031108bef286d8ac846b5f19878d55cb4398c5800f7c268

See more details on using hashes here.

File details

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

File metadata

  • Download URL: indycarpy-0.0.1-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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0090edddbc64f2ab535a27eb1c94db534c7944c63606accb6ff5f2cb56f44f7
MD5 9a6f37ef94e8675c632038cc04eb1b08
BLAKE2b-256 78d5a8e89baee27b0a2e069d9240062ab1db5d5ae34557215a696f8c0bf809f0

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