Actualy put alexa 1000 top domains in the output list

pull/5/head
Xavier Claude 2016-08-03 15:54:13 +02:00
parent 4075a58165
commit 16a4265688
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ with zipfile.ZipFile(alexa_file, 'r') as alexa_lists:
for name in alexa_lists.namelist():
if name == "top-1m.csv":
with alexa_lists.open(name) as top:
top1000 = top.readlines()[0:999]
top1000 = top.readlines()[:1000]
else:
continue