Im trying to make a Python script that gets a list of the items in someone's Steam inventory. I have this code currently:
#!/usr/bin/python
import urllib2
import json
def getInventory(steamid):
        data = urllib2.urlopen('http://steamcommunity.com/profiles/'+steamid+'/inventory/json/730/2')
        json_data = json.loads(data)
        print 'Success: %s' %  json_data['success']
        for v in json_data['rgDescriptions']:
                print 'Item: ' + v['name']
        print('Done!')
        return
getInventory('76561197988445370');
But it won't output anything other than 'Success: True' and 'Done!'. Can someone help me get this to work?