Visit Kaggle page for the full Game Dataset
.
|-- Combine_game_info.ipynb
|-- Get_game_id.ipynb
|-- Get_game_info.ipynb
`-- data
|-- game_id.csv
|-- game_info.csv
|-- game_id
| |-- 1.json
| |-- 2.json
| `-- *.json
`-- game_info
|-- 1.json
|-- 2.json
`-- *.json
pip3 install -r requirements.txt
- Run
Get_game_id.ipynb
. This will go through all pages in https://api.rawg.io/api/games?page=1 and save a JSON file for each page in./data/game_id/*.json
where*
is the page number. At the end,./data/game_id.csv
is created containing information of all downloaded JSON files to prepare for the next step. - Run
Get_game_info.ipynb
. This will get each game information i.e. https://api.rawg.io/api/games/ and save a JSON file for each game in./data/game_info/*.json
where*
is the game id. - Run
Combine_game_info.ipynb
. This will go through each game in./data/game_info/
and put the data together and save it as./data/game_info.csv
.game_info.csv
contains the final data set
- Only needed information are saved in JSON files:
./data/game_id
with 17000 files has the size of ~10MBs../data/game_info
with 350000 files has the size of ~170MBs
- To increase the speed of obtaining the data from RAWG API, concurrent programming was applied to step 1 and 2.
- Step 1 takes ~40 minutes with 50 threads
- Step 2 takes ~100 minutes with 100 threads
- Step 3 takes ~5 minutes
- When 1 thread fails to get data, it will skip to next game/page without any notification. To make sure you get all games on the database. You can run Step 1 and Step 2 multiple times. Downloaded files will be skipped.
- To reduce the file size of downloaded files and the final CSV dataset, not all JSON information are downloaded. If you need more customization, you will need to change how the JSON data is handled in Step 2
- Although Multhreading was applied, the whole process can take up to ~3 hours to finish because of the large amount of data.
This is a game data set containing 345667 games on over 50 platforms including mobiles. All games information are obtained using Python with RAWG API. This data set was last updated on Nov 10th 2019. If you are interested in obtaining more recent games, visit the GitHub page for more information.
Each row contains information about one game. There are several columns that have multiple values like platforms, genres, ... In those cases, values are separated by double pipes ||
. All game information are updated on Nov 10th 2019.
id
: An unique ID identifying this Game in RAWG Databaseslug
: An unique slug identifying this Game in RAWG Databasename
: Name of the gamemetacritic
: Rating of the game on Metacriticreleased
: The date the game was releasedtba
: To be announced stateupdated
: The date the game was last updatedwebsite
: Game Websiterating
: Rating rated by RAWG userrating_top
: Maximum ratingplaytime
: Hours needed to complete the gameachievements_count
: Number of achievements in gameratings_count
: Number of RAWG users who rated the gamesuggestions_count
: Number of RAWG users who suggested the gamegame_series_count
: Number of games in the seriesreviews_count
: Number of RAWG users who reviewed the gameplatforms
: Platforms game was released on. Separated by||
developers
: Game developers. Separated by||
genres
: Game genres. Separated by||
publishers
: Game publishers. Separated by||
esrb_rating
: ESRB ratingsadded_status_yet
: Number of RAWG users had the game as "Not played"added_status_owned
: Number of RAWG users had the game as "Owned"added_status_beaten
: Number of RAWG users had the game as "Completed"added_status_toplay
: Number of RAWG users had the game as "To play"added_status_dropped
: Number of RAWG users had the game as "Played but not beaten"added_status_playing
: Number of RAWG users had the game as "Playing"
Thanks to RAWG for providing easy to use and fast API
Icon made by Good Ware from www.flaticon.com
With this data, one can create a game recommendation platform as well as drawing insights about the gaming industry and gaming trends.