Skip to content

Chipdelmal/MK8DLeaderboard

Repository files navigation

MK8DLeaderboard

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.

Usage

To run these scripts, make sure to install the required dependencies first.

Leaderboard Parser

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.

Data Visualizer

UNDER DEVELOPMENT

python plot.py '2020-09-02_Nitro_200cc_Items.csv'

Dependencies

seaborn, pandas, dateparser, selenium, matplotlib

Author


Héctor M. Sánchez C.

About

Mario Kart 8 Deluxe Speedrun.com leaderboard scrapper and visualizer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published