Webscraping the MK8D Leaderboard to do some DataViz.
These scripts scrape the information on the Mario Kart 8 Deluxe speedrun leaderboards with Selenium and convert it to a pandas dataframe so that it can be manipulated and analyzed.
To run these scripts, make sure to install the required dependencies first.
Download Selenium's drivers and place them in the chromedriver folder. After doing that, run the following script:
python scrape.py CAT SPD ITM
with the following options available:
- Categories (CAT): '48', '32', 'Nitro', 'Retro', 'Bonus'
- Speed (SPD): '200cc', '150cc'
- Items (ITM): 'Items', 'NoItems'
For example:
python scrape.py 48 200cc NoItems
This will generate a CSV file for the leaderboard information on the selected options. The CSV contains the following information:
Rank, Player, Time, Version, Date
for each one the submissions.
Alternatively, run the following command:
python scrapeAll.py
to download all the combinations of the leaderboards in the current date.
UNDER DEVELOPMENT
python plot.py '2020-09-02_Nitro_200cc_Items.csv'