-
Notifications
You must be signed in to change notification settings - Fork 5
/
get_keys.py
executable file
·30 lines (27 loc) · 1001 Bytes
/
get_keys.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/python
from urllib2 import urlopen
import json, unicodedata
url='https://wiiu.titlekeys.com/json'
response = urlopen(url)
parsed = json.load(response)
key_file = open("keys.txt",'w')
key_file.write("""#Common Keys#
D7B00402659BA2ABD2CB0DB27FA2B656 # Wii U Common Key:
805E6285CD487DE0FAFFAA65A6985E17 # Wii U Espresso Ancast Key
B5D8AB06ED7F6CFC529F2CE1B4EA32FD # Wii U Starbuck Ancast Key
############################################################
""")
data=''
for i in xrange(len(parsed)):
if parsed[i]['titleKey'] == None or parsed[i]['name'] == None:
pass
else:
key = parsed[i]['titleKey']
name = parsed[i]['name']
name = name.replace('\n','').replace('\t','')
name = unicodedata.normalize('NFKD', name).encode('ascii','ignore')
region = parsed[i]['region']
line_data = str(key),' # ',name,' (',region,')'
normalized_data = "".join(line_data)
key_file.write("%s\n" %normalized_data)
key_file.close()