Skip to content

Instantly share code, notes, and snippets.

@craked5
Created October 24, 2015 16:47
Show Gist options
  • Save craked5/4352c7b686fbb65d0724 to your computer and use it in GitHub Desktop.
Save craked5/4352c7b686fbb65d0724 to your computer and use it in GitHub Desktop.
stuff for bitskins bot!
'''
def get_bitskins_bot_from_file(self):
file = open('bitskins_bots_urls.json', 'r')
bitskins_urls_raw = ujson.load(file)
file.close()
bitskins_urls_good = {}
i = 0
for key in bitskins_urls_raw:
urls_temp = [key['url'] for key in bitskins_urls_raw[key]]
print urls_temp
for index, val in enumerate(urls_temp):
bitskins_urls_good['bot_'+str(i)] = urls_temp[index]
i += 1
file_good = open('bitskins_urls.json','w')
ujson.dump(bitskins_urls_good,file_good)
file_good.close()
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment