summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2018-01-26 00:46:50 +0100
committerAndré Glüpker <git@wgmd.de>2018-01-26 00:46:50 +0100
commitdf670a38513e039dc209a77b55ecc6ee508b47a7 (patch)
tree7ddcda0acf7c659b39fd7fa12bd3524e6ebb54e7
parent729f967ea2a2927b90b6fd50e0f38c977e6a4f4e (diff)
downloadsteam-df670a38513e039dc209a77b55ecc6ee508b47a7.tar.gz
steam-df670a38513e039dc209a77b55ecc6ee508b47a7.tar.bz2
steam-df670a38513e039dc209a77b55ecc6ee508b47a7.zip
Remove some debug prints
-rw-r--r--SteamAPI.py6
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')