diff --git a/tools/generate_alexa.py b/tools/generate_alexa.py index fee0bc7..1b1c1fc 100755 --- a/tools/generate_alexa.py +++ b/tools/generate_alexa.py @@ -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))