You can use this class to send requests to iRacing service and get some valuable data like stats, race results, driver info, series info, etc. it requires valid login credentials (username and password) to access the service.
from client import iRWebStats
irw = iRWebStats()
irw.login('username', 'password')
print (irw.cars_driven()) # cars driven by user
Check examples.py for more examples
- client.py : This is where the main class is defined.
- examples.py : Some examples.
- constants.py : Useful constants used in request fields sent to the service.
- util.py : Helper functions.
- shell.py: A command line interface for the client.
Python 2.7+ or 3+ (with network access)