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 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.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.2.1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for indycarpy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c1aa18a9df8248675b7364bcd2a8dc171f9e6b0cd40aba40247206b84819db6c
MD5 9af99e3f5b1884c2ce5283fe4bf2664d
BLAKE2b-256 1264a8fad565294e0ecb8762ee65cc6a36e1e90c235839a6e29f2ad1f8bd5e92

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for indycarpy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68105b4c6e23cc5d8d647817f715ce361a3a3dfff80f523127d9281563a38aa2
MD5 8c926c73ce70fa862ee0ba7a87448260
BLAKE2b-256 8d6cf7ab98acd98903bd7c69e0357833b9a2ab71c00a0d40abd4f6c997f4dabf

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