From 2dcfc255dc53ef61291375b0e8f6dbe1afe710d9 Mon Sep 17 00:00:00 2001 From: DeciBelioS <96150975+Deci8BelioS@users.noreply.github.com> Date: Wed, 16 Oct 2024 11:30:59 +0200 Subject: [PATCH] Update AGH_filters.py --- AGH/AGH_filters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AGH/AGH_filters.py b/AGH/AGH_filters.py index f14a241..3f2d232 100644 --- a/AGH/AGH_filters.py +++ b/AGH/AGH_filters.py @@ -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' @@ -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