From 0170df90898689cb760ee91d9fe5c09b6464d6ce Mon Sep 17 00:00:00 2001 From: itdoginfo <koalav42@gmail.com> Date: Sun, 9 Feb 2025 11:25:54 +0300 Subject: [PATCH] Fix kvas list --- convert.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convert.py b/convert.py index a2ba4f9..b0d536f 100755 --- a/convert.py +++ b/convert.py @@ -134,6 +134,7 @@ def kvas(src, out, remove={'google.com'}): if not tldextract.extract(line).domain and tldextract.extract(line).suffix: domains.add(tldextract.extract(line.rstrip()).suffix) + domains = domains - remove domains = sorted(domains) with open(f'{out}-kvas.lst', 'w') as file: @@ -395,7 +396,7 @@ if __name__ == '__main__': Path("Russia").mkdir(parents=True, exist_ok=True) removeDomains = {'google.com', 'googletagmanager.com', 'github.com', 'githubusercontent.com', 'githubcopilot.com', 'microsoft.com', 'cloudflare-dns.com', 'parsec.app' } - removeDomainsKvas = {'google.com', 'googletagmanager.com', 'github.com', 'githubusercontent.com', 'githubcopilot.com', 'microsoft.com', 'cloudflare-dns.com', 'parsec.app', 't.co' } + removeDomainsKvas = {'google.com', 'googletagmanager.com', 'github.com', 'githubusercontent.com', 'githubcopilot.com', 'microsoft.com', 'cloudflare-dns.com', 'parsec.app', 't.co', 'ua' } inside_lists = [rusDomainsInsideCategories, rusDomainsInsideServices]