diff options
Diffstat (limited to 'SteamAPI.py')
-rw-r--r-- | SteamAPI.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/SteamAPI.py b/SteamAPI.py index 0f2c91e..87b5c39 100644 --- a/SteamAPI.py +++ b/SteamAPI.py @@ -76,7 +76,6 @@ class SteamAPI(): url = 'https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?format=json&key=%s&steamids=%s' % (self.token, steamidlist) response = urlopen(url) if response.status != 200: - print('Isn\'t this an HTTPError?') return [] data = response.read().decode('utf-8') jsondata = json.loads(data) @@ -151,22 +150,18 @@ class SteamAPI(): return jsondata['game'] url = 'http://api.steampowered.com/ISteamUserStats/GetSchemaForGame/v2/?key=%s&appid=%s&format=json' % (self.token, str(gameid)) - print(url) try: response = urlopen(url) data = response.read().decode('utf-8') jsondata = json.loads(data) except HTTPError as e: # f.e. profile is private - print('Fetch failed.', e.code, e.reason) jsondata = None if 'game' in jsondata: if CACHE: Caching.writeCache('gameschema', gameid, json.dumps(jsondata)) return jsondata['game'] - else: - print('No game in json:', jsondata) return None def getPlayerGames(self, steamid): @@ -184,7 +179,6 @@ class SteamAPI(): return ( jsondata['response']['game_count'], jsondata['response']['games'] ) url = 'http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=%s&steamid=%s&include_appinfo=1&format=json' % (self.token, str(steamid)) - print(url) try: response = urlopen(url) data = response.read().decode('utf-8') |