steam-games-dataset / README.md
FronkonGames's picture
Upload README.md with huggingface_hub
9bd376d
|
raw
history blame
8.05 kB
metadata
language:
  - en
license: cc-by-4.0
size_categories:
  - 10K<n<100K
task_categories:
  - text-generation
  - text2text-generation
pretty_name: Steam Games Dataset
tags:
  - games
  - steam
  - python
  - json
  - csv
  - video games
dataset_info:
  features:
    - name: AppID
      dtype: int64
    - name: Name
      dtype: string
    - name: Release date
      dtype: string
    - name: Estimated owners
      dtype: string
    - name: Peak CCU
      dtype: int64
    - name: Required age
      dtype: int64
    - name: Price
      dtype: float64
    - name: DLC count
      dtype: int64
    - name: About the game
      dtype: string
    - name: Supported languages
      dtype: string
    - name: Full audio languages
      dtype: string
    - name: Reviews
      dtype: string
    - name: Header image
      dtype: string
    - name: Website
      dtype: string
    - name: Support url
      dtype: string
    - name: Support email
      dtype: string
    - name: Windows
      dtype: bool
    - name: Mac
      dtype: bool
    - name: Linux
      dtype: bool
    - name: Metacritic score
      dtype: int64
    - name: Metacritic url
      dtype: string
    - name: User score
      dtype: int64
    - name: Positive
      dtype: int64
    - name: Negative
      dtype: int64
    - name: Score rank
      dtype: float64
    - name: Achievements
      dtype: int64
    - name: Recommendations
      dtype: int64
    - name: Notes
      dtype: string
    - name: Average playtime forever
      dtype: int64
    - name: Average playtime two weeks
      dtype: int64
    - name: Median playtime forever
      dtype: int64
    - name: Median playtime two weeks
      dtype: int64
    - name: Developers
      dtype: string
    - name: Publishers
      dtype: string
    - name: Categories
      dtype: string
    - name: Genres
      dtype: string
    - name: Tags
      dtype: string
    - name: Screenshots
      dtype: string
    - name: Movies
      dtype: string
  splits:
    - name: train
      num_bytes: 259794198
      num_examples: 83560
  download_size: 123245205
  dataset_size: 259794198
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*

# Overview

Information of more than 83,000 games published on Steam. Only games (no DLCs, episodes, music, videos, etc) currently released have been added.

This dataset has been created with this code (MIT) and use the API provided by Steam, the largest gaming platform on PC. Data is also collected from Steam Spy.

The data is in two formats: CSV and JSON.

Example

Here is a simple example of how to parse json:

import os
import json

dataset = {}
if os.path.exists('games.json'):
  with open('games.json', 'r', encoding='utf-8') as fin:
    text = fin.read()
    if len(text) > 0:
      dataset = json.loads(text)

for app in dataset:
  appID = app                                         # AppID, unique identifier for each app (string).
  game = dataset[app]             

  name = game['name']                                 # Game name (string).
  releaseDate = game['release_date']                  # Release date (string).
  estimatedOwners = game['estimated_owners']          # Estimated owners (string, e.g.: "0 - 20000").
  peakCCU = game['peak_ccu']                          # Number of concurrent users, yesterday (int).
  required_age = game['required_age']                 # Age required to play, 0 if it is for all audiences (int).
  price = game['price']                               # Price in USD, 0.0 if its free (float).
  dlcCount = game['dlc_count']                        # Number of DLCs, 0 if you have none (int).
  longDesc = game['detailed_description']             # Detailed description of the game (string).
  shortDesc = game['short_description']               # Brief description of the game,
                                                      # does not contain HTML tags (string).
  languages = game['supported_languages']             # Comma-separated enumeration of supporting languages.
  fullAudioLanguages = game['full_audio_languages']   # Comma-separated enumeration of languages with audio support.
  reviews = game['reviews']                           #
  headerImage = game['header_image']                  # Header image URL in the store (string).
  website = game['website']                           # Game website (string).
  supportWeb = game['support_url']                    # Game support URL (string).
  supportEmail = game['support_email']                # Game support email (string).
  supportWindows = game['windows']                    # Does it support Windows? (bool).
  supportMac = game['mac']                            # Does it support Mac? (bool).
  supportLinux = game['linux']                        # Does it support Linux? (bool).
  metacriticScore = game['metacritic_score']          # Metacritic score, 0 if it has none (int).
  metacriticURL = game['metacritic_url']              # Metacritic review URL (string).
  userScore = game['user_score']                      # Users score, 0 if it has none (int).
  positive = game['positive']                         # Positive votes (int).
  negative = game['negative']                         # Negative votes (int).
  scoreRank = game['score_rank']                      # Score rank of the game based on user reviews (string).
  achievements = game['achievements']                 # Number of achievements, 0 if it has none (int).
  recommens = game['recommendations']                 # User recommendations, 0 if it has none (int).
  notes = game['notes']                               # Extra information about the game content (string).
  averagePlaytime = game['average_playtime_forever']  # Average playtime since March 2009, in minutes (int).
  averageplaytime2W = game['average_playtime_2weeks'] # Average playtime in the last two weeks, in minutes (int).
  medianPlaytime = game['median_playtime_forever']    # Median playtime since March 2009, in minutes (int).
  medianPlaytime2W = game['median_playtime_2weeks']   # Median playtime in the last two weeks, in minutes (int).

  packages = game['packages']                         # Available packages.
  for pack in packages:           
    title = pack['title']                             # Package title (string).
    packDesc = pack['description']                    # Package description (string).

    subs = pack['subs']                               # Subpackages.
    for sub in subs:            
      text = sub['text']                              # Subpackage title (string).
      subDesc = sub['description']                    # Subpackage description (string).
      subPrice = sub['price']                         # Subpackage price in USD (float).

  developers = game['developers']                     # Game developers.
  for developer in developers:            
    developerName = developer                         # Developer name (string).

  publishers = game['publishers']                     # Game publishers.
  for publisher in publishers:            
    publisherName = publisher                         # Publisher name (string).

  categories = game['categories']                     # Game categories.
  for category in categories:           
    categoryName = category                           # Category name (string).

  genres = game['genres']                             # Game genres.
  for gender in genres:           
    genderName = gender                               # Gender name (string).

  screenshots = game['scrennshots']                   # Game screenshots.
  for screenshot in screenshots:            
    scrennshotsURL = screenshot                       # Game screenshot URL (string).

  movies = game['movies']                             # Game movies.
  for movie in movies:            
    movieURL = movie                                  # Game movie URL (string).

  tags = game['tags']                                 # Tags.
  for tag in tags:           
    tagKey = tag                                      # Tag key (string, int).