Skip to content

Instantly share code, notes, and snippets.

@saiberz
Last active August 29, 2015 14:19
Show Gist options
  • Save saiberz/4e6510779e9ef2ef8dbd to your computer and use it in GitHub Desktop.
Save saiberz/4e6510779e9ef2ef8dbd to your computer and use it in GitHub Desktop.
dotahelp
import requests
import json
items_list = requests.get('http://steamcommunity.com/market/appfilters/570')
items_json = json.loads(items_list.text)
heroes_list = items_json['facets']['570_Hero']['tags']
heroes = []
hero = {}
#for k,v in heroes_list.iteritems():
for key in heroes_list:
hero['name'] = heroes_list[key]['localized_name']
hero['npc_name'] = key
print hero['name']
print hero['npc_name']
heroes.append(hero)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment