Fix alexa top1M url
parent
97a7e16396
commit
b856e9897c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue