FronkonGames commited on
Commit
b7d35cd
1 Parent(s): 817c8f1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +92 -0
README.md CHANGED
@@ -28,3 +28,95 @@ Information of **more than 83,000 games** published on Steam. Maintained by **[F
28
  This dataset has been created with **[this code (MIT)](https://github.com/FronkonGames/Steam-Games-Scraper)** and use the API provided by _Steam_, the largest gaming platform on PC. Data is also collected from _Steam Spy_.
29
 
30
  Only published games, _no DLCs, episodes, music, videos, etc_.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  This dataset has been created with **[this code (MIT)](https://github.com/FronkonGames/Steam-Games-Scraper)** and use the API provided by _Steam_, the largest gaming platform on PC. Data is also collected from _Steam Spy_.
29
 
30
  Only published games, _no DLCs, episodes, music, videos, etc_.
31
+
32
+ Here is a simple example of how to parse json information:
33
+
34
+ ```
35
+ # Simple parse of the 'games.json' file.
36
+ import os
37
+ import json
38
+
39
+ dataset = {}
40
+ if os.path.exists('games.json'):
41
+ with open('games.json', 'r', encoding='utf-8') as fin:
42
+ text = fin.read()
43
+ if len(text) > 0:
44
+ dataset = json.loads(text)
45
+
46
+ for app in dataset:
47
+ appID = app # AppID, unique identifier for each app (string).
48
+ game = dataset[app]
49
+
50
+ name = game['name'] # Game name (string).
51
+ releaseDate = game['release_date'] # Release date (string).
52
+ estimatedOwners = game['estimated_owners'] # Estimated owners (string, e.g.: "0 - 20000").
53
+ peakCCU = game['peak_ccu'] # Number of concurrent users, yesterday (int).
54
+ required_age = game['required_age'] # Age required to play, 0 if it is for all audiences (int).
55
+ price = game['price'] # Price in USD, 0.0 if its free (float).
56
+ dlcCount = game['dlc_count'] # Number of DLCs, 0 if you have none (int).
57
+ longDesc = game['detailed_description'] # Detailed description of the game (string).
58
+ shortDesc = game['short_description'] # Brief description of the game,
59
+ # does not contain HTML tags (string).
60
+ languages = game['supported_languages'] # Comma-separated enumeration of supporting languages.
61
+ fullAudioLanguages = game['full_audio_languages'] # Comma-separated enumeration of languages with audio support.
62
+ reviews = game['reviews'] #
63
+ headerImage = game['header_image'] # Header image URL in the store (string).
64
+ website = game['website'] # Game website (string).
65
+ supportWeb = game['support_url'] # Game support URL (string).
66
+ supportEmail = game['support_email'] # Game support email (string).
67
+ supportWindows = game['windows'] # Does it support Windows? (bool).
68
+ supportMac = game['mac'] # Does it support Mac? (bool).
69
+ supportLinux = game['linux'] # Does it support Linux? (bool).
70
+ metacriticScore = game['metacritic_score'] # Metacritic score, 0 if it has none (int).
71
+ metacriticURL = game['metacritic_url'] # Metacritic review URL (string).
72
+ userScore = game['user_score'] # Users score, 0 if it has none (int).
73
+ positive = game['positive'] # Positive votes (int).
74
+ negative = game['negative'] # Negative votes (int).
75
+ scoreRank = game['score_rank'] # Score rank of the game based on user reviews (string).
76
+ achievements = game['achievements'] # Number of achievements, 0 if it has none (int).
77
+ recommens = game['recommendations'] # User recommendations, 0 if it has none (int).
78
+ notes = game['notes'] # Extra information about the game content (string).
79
+ averagePlaytime = game['average_playtime_forever'] # Average playtime since March 2009, in minutes (int).
80
+ averageplaytime2W = game['average_playtime_2weeks'] # Average playtime in the last two weeks, in minutes (int).
81
+ medianPlaytime = game['median_playtime_forever'] # Median playtime since March 2009, in minutes (int).
82
+ medianPlaytime2W = game['median_playtime_2weeks'] # Median playtime in the last two weeks, in minutes (int).
83
+
84
+ packages = game['packages'] # Available packages.
85
+ for pack in packages:
86
+ title = pack['title'] # Package title (string).
87
+ packDesc = pack['description'] # Package description (string).
88
+
89
+ subs = pack['subs'] # Subpackages.
90
+ for sub in subs:
91
+ text = sub['text'] # Subpackage title (string).
92
+ subDesc = sub['description'] # Subpackage description (string).
93
+ subPrice = sub['price'] # Subpackage price in USD (float).
94
+
95
+ developers = game['developers'] # Game developers.
96
+ for developer in developers:
97
+ developerName = developer # Developer name (string).
98
+
99
+ publishers = game['publishers'] # Game publishers.
100
+ for publisher in publishers:
101
+ publisherName = publisher # Publisher name (string).
102
+
103
+ categories = game['categories'] # Game categories.
104
+ for category in categories:
105
+ categoryName = category # Category name (string).
106
+
107
+ genres = game['genres'] # Game genres.
108
+ for gender in genres:
109
+ genderName = gender # Gender name (string).
110
+
111
+ screenshots = game['scrennshots'] # Game screenshots.
112
+ for screenshot in screenshots:
113
+ scrennshotsURL = screenshot # Game screenshot URL (string).
114
+
115
+ movies = game['movies'] # Game movies.
116
+ for movie in movies:
117
+ movieURL = movie # Game movie URL (string).
118
+
119
+ tags = game['tags'] # Tags.
120
+ for tag in tags:
121
+ tagKey = tag # Tag key (string, int).
122
+ ```