Last active
August 29, 2015 14:19
-
-
Save saiberz/4e6510779e9ef2ef8dbd to your computer and use it in GitHub Desktop.
dotahelp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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