Created
October 24, 2015 16:47
-
-
Save craked5/4352c7b686fbb65d0724 to your computer and use it in GitHub Desktop.
stuff for bitskins bot!
This file contains 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
''' | |
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