Fix alexa top1M url

pull/5/head
Xavier Claude 2016-08-03 15:43:35 +02:00
parent 97a7e16396
commit b856e9897c
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import zipfile
import datetime import datetime
import json import json
alexa_url = "http://s3.amazonaws.com/alexa-static/top-1mcsv.zip" alexa_url = "http://s3.amazonaws.com/alexa-static/top-1m.csv.zip"
alexa_file = "top-1m.csv.zip" alexa_file = "top-1m.csv.zip"
user_agent = {"User-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0"} user_agent = {"User-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0"}
r = requests.get(alexa_url, headers=user_agent) r = requests.get(alexa_url, headers=user_agent)