chg: [tools] alexa script fixed

pull/97/head
Alexandre Dulaunoy 2019-03-09 17:25:27 +01:00
parent 5db8316e93
commit 342a6d2ad5
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 1 additions and 1 deletions

View File

@ -34,6 +34,6 @@ alexa_warninglist['matching_attributes'] = ['hostname', 'domain']
for site in top1000: for site in top1000:
v = str(site).split(',')[1] v = str(site).split(',')[1]
alexa_warninglist['list'].append(v[:-3]) alexa_warninglist['list'].append(v.rstrip())
alexa_warninglist['list'] = sorted(set(alexa_warninglist['list'])) alexa_warninglist['list'] = sorted(set(alexa_warninglist['list']))
print(json.dumps(alexa_warninglist)) print(json.dumps(alexa_warninglist))