Skip to content

Commit 781c86a

Browse files
committed
Replace localhost with real alexa-1m url
1 parent 23ad914 commit 781c86a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/alexa-ruleset-checker.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
tmpRulesFileName = "/tmp/rulesDiff-" + format(random.randrange(1,65535)) # Feel free to enlarge if needed
3333

3434
# URL of the Alexa Top1M
35-
# alexaTop1MURL = "http://s3.amazonaws.com/alexa-static/top-1m.csv.zip"
36-
alexaTop1MURL = "http://127.0.0.1/top-1m.csv.zip"
35+
alexaTop1MURL = "http://s3.amazonaws.com/alexa-static/top-1m.csv.zip"
36+
# alexaTop1MURL = "http://127.0.0.1/top-1m.csv.zip"
3737

3838
# Temporary file name, to aboid conflicts
3939
tmpAlexaFileName = "/tmp/alexa-top1M-" + format(random.randrange(1,65535)) + ".csv"
@@ -42,7 +42,7 @@
4242
logFileName = "/tmp/alexa-ruleset-log-" + format(random.randrange(1,65535)) + ".log"
4343

4444
# Filename of the CSV file contained in the Alexa zipfile
45-
tmpAlexaZipFileContents = 'top-1m.csv'
45+
tmpAlexaZipFileContents = 'top-1m.csv'
4646

4747
# Absolute path of the git repo (the folder containing src/)
4848
# Remember to change this accordingly to your system, if you ever move the script
@@ -138,7 +138,7 @@ def ruleLookup(target):
138138
FQDN = target.get('host') # URL of the website
139139
if ruleLookup(FQDN) == 1: # Look it up in the sitesList
140140
# Message different according to file mode
141-
if ruleFile[0] == "A": # New
141+
if ruleFile[0] == "A": # New
142142
found = "NEW"
143143
countAddedRules = countAddedRules + 1
144144
break

0 commit comments

Comments
 (0)