This is a python script that will create a CSV of the top 10 race results for drivers from the given Club ID.
The club being searched, season quarter, season week are all configurable as well as the amount of results(e.g. top 20 instead of top 10)
- Clone the repo
- Make sure you have pipenv installed(pip install pipenv)
- From inside the repo, run
pipenv installto install dependencies - From inside the repo, clone pyracing: https://github.com/Esterni/pyracing
- Navigate into the
pyracingdirectory and runpip install . - Create a .env file, run
touch .envfrom the root of the repo - inside the new file called
.envaddIRACING_USERNAME=MY USERNAMEandIRACING_PASSWORD=MY PASSWORDas lines- NOTE This will not work if your username and password are not correct
- Make sure your computer won't go to sleep if left alone for a while(because this takes a while)
- From the root of the repo, run
python main.py - Enjoy!
- Make sure you are inside the pipenv shell when you run
anything related to this code, by running
pipenv shellfrom inside the repo - Make sure the shell is active when running the
pip install .from inside the pyracing directory