Crawler: Adblock: add more Regex
This commit is contained in:
parent
2641bf2acd
commit
809478b534
@ -82,7 +82,7 @@ def filteringcon(filters_regex_one):
|
||||
with open(filters_regex_one) as f:
|
||||
file = f.read().split('\n')
|
||||
for i in range(len(file)):
|
||||
file[i] = re.sub('(@@\|\|..*)|(\|\|..*\/..*)|(^\|http)|(^(_|\*|&|\-|\/|\.|:|@@|\?|\=|\;)..*)|(..*(#|\$)..*)|(^..*\$(app=|removeparam=)..*)|(\|\|..*\/..*)', '', file[i])
|
||||
file[i] = re.sub('(@@\|\|..*)|(\|\|..*\/..*)|(^\|http)|(^(_|\*|&|\-|\/|\.|:|@@|\?|\=|\;|\,)..*)|(..*(#|\$)..*)|(^..*\$(app=|removeparam=)..*)|(\|\|..*\/..*)', '', file[i])
|
||||
file[i] = re.sub('0\.0\.0\.0 0\.0\.0\.0\Z', '', file[i])
|
||||
file[i] = re.sub('\A'+str(IP4)+' ', '', file[i])
|
||||
file[i] = re.sub('\A'+str(IP6)+' ', '', file[i])
|
||||
|
Loading…
Reference in New Issue
Block a user