For Southampton UoSM COMP1204 CW2. This is a web scraper that scrapes steamdb.info website. It is a collection of scripts that scrape the website and store the data in a MySQL database.
Download the CLI programs below. Ensure they are added to PATH (/usr/local/bin
) to run the scripts.
Note: curl-impersonate
and pup
cannot be downloaded through apt
. Therefore, you'll need to install them manually by extracting the binaries from the zip files and adding them to path. Here's a general guide:
- Go to their GitHub repository and click on
Releases
in the right side menu. - Download the correct binary file for your OS. For example on a Raspberry Pi which runs on the Linux OS and ARM architecture,
aarch64
andarm
usually work. If you're running these scripts on a VM, keep this in mind. - Unzip the zip / tar file.
- Now, the last and most important part —
sudo mv
the binary files required for the script to/usr/local/bin
or the scripts will not work!!! To verify that the binaries are added to PATH, try to run the binaries as a command in the CLI.
Note: The script assumes that following path exists: /var/lib/mysql/steam_games_db
. This is the default installation directory if you install mysql
with apt
.
- Run
create_steam_games_db.sh
to create the MySQL database to store the data.
./create_steam_gams_db.sh
- Run
add_app_id.sh
with one or more steam app id(s) that you want to scrape.
./app_id.sh 730
./app_id.sh 550 990 4000
- Run
run_scapers.sh
to scrape live steam and twitch data from all the app id(s) you've added.
./run_scrapers.sh
- To plot the data, run
plot_steam_games_data.sh
with the app id(s) you want to plot.
./plot_steam_games_data.sh -a 730 -v
./plot_steam_games_data.sh -pf -a 550,730