Skip to content

Commit

Permalink
Update AGH_filters.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Deci8BelioS authored Oct 16, 2024
1 parent 3ed372e commit 2dcfc25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AGH/AGH_filters.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import requests, re

from regex import REGEX, REGEX_WHITELIST, DOMAIN_LIST, SUBDOMAIN_DUPLICATE, SUBDOMAIN_DUPLICATE2, SUBDOMAIN_DUPLICATE3, SUBDOMAIN_DUPLICATE4, SUBDOMAIN_DUPLICATE5
from regex import REGEX, LIST_WHITELIST, DOMAIN_LIST, SUBDOMAIN_DUPLICATE, SUBDOMAIN_DUPLICATE2, SUBDOMAIN_DUPLICATE3, SUBDOMAIN_DUPLICATE4, SUBDOMAIN_DUPLICATE5

output_file = r'hosts.txt'

Expand Down Expand Up @@ -50,7 +50,7 @@ def filter_lines(lines, exceptions):
continue
if any(pattern.search(line) for pattern in REGEX) or not line:
continue
if line.endswith(tuple(REGEX_WHITELIST)) or not line:
if line.endswith(tuple(LIST_WHITELIST)) or not line:
continue
if line.endswith(tuple(DOMAIN_LIST)) and not line.startswith(tuple(DOMAIN_LIST)) or not line:
continue
Expand Down

0 comments on commit 2dcfc25

Please sign in to comment.