gptools.py provides the GPDriver
class, which is a selenium webdriver with gpro browsing built-in. main.py interacts with the config.json file to make shell operation easier.
- Install Selenium with the Firefox webdriver (used to log in and out of GPRO without having to store your credentials in a dodgy config file).
- Install BeautifulSoup (scrapes table data).
- Install pandas (outputs tables in a tabular pickle format).
- (optional) Choose what "tables" and "quali" information from the race analysis and qualify screens to grab, as well as whether to merge and get season track data by editing the config.json file (comes with sensible defaults).
python3 main.py [season] [fromRace] [toRace]
will dump the data as outlined in config.json in the data folder.
Example: python3 main.py 96 10 13
will create a data/96
folder with the tables in config.json:"tables"
python3 main.py quali
will dump your next race's qualifying data (testing, setup, etc.) as outlined in config.json