fix: [alex] The generator wants to decode things ;)
parent
1be60b805a
commit
88ad201afd
|
@ -33,7 +33,7 @@ alexa_warninglist['list'] = []
|
|||
alexa_warninglist['matching_attributes'] = ['hostname', 'domain']
|
||||
|
||||
for site in top1000:
|
||||
v = str(site).split(',')[1]
|
||||
v = site.decode('UTF-8').split(',')[1]
|
||||
alexa_warninglist['list'].append(v.rstrip())
|
||||
alexa_warninglist['list'] = sorted(set(alexa_warninglist['list']))
|
||||
print(json.dumps(alexa_warninglist))
|
||||
|
|
Loading…
Reference in New Issue