File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3232tmpRulesFileName = "/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
3939tmpAlexaFileName = "/tmp/alexa-top1M-" + format (random .randrange (1 ,65535 )) + ".csv"
4242logFileName = "/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
You can’t perform that action at this time.
0 commit comments