mirror of
https://github.com/minoplhy/filters-development.git
synced 2024-11-24 16:26:45 +00:00
100 lines
4.3 KiB
Python
100 lines
4.3 KiB
Python
import sys
|
|
sys.path.append('/filters-maker')
|
|
|
|
import os
|
|
import crawler
|
|
import maker_rpz
|
|
import maker_hosts
|
|
import maker_abp
|
|
import maker_domains
|
|
import maker_unbound
|
|
import maker_dnsmasq
|
|
|
|
incoming = "/reprwiki/Private-build/ucate/domains.txt"
|
|
excluded = "/repros/Resources/excluded.txt"
|
|
rpz_locat = "/reprwiki/Private-build/ucate/rpz.txt"
|
|
hosts_locat = "/reprwiki/Private-build/ucate/hosts.txt"
|
|
abp_locat = "/reprwiki/Private-build/ucate/adblock.txt"
|
|
unb_locat = "/reprwiki/Private-build/ucate/unbound.conf.txt"
|
|
dnq_locat = "/reprwiki/Private-build/ucate/dnsmasq.conf.txt"
|
|
Version = "UCATE"
|
|
os.makedirs('/reprwiki/Private-build/ucate',exist_ok=True)
|
|
|
|
UCATE_SOURCE = [
|
|
'https://badmojr.github.io/1Hosts/Pro/rpz.txt',
|
|
'https://github.com/minoplhy/filters/releases/download/filters-build/Adguard-dns_rpz.txt',
|
|
'https://github.com/minoplhy/filters/releases/download/filters-build/Adguard-cname-tracker_rpz.txt',
|
|
'https://github.com/minoplhy/filters/releases/download/filters-build/Adguard-cname-original_rpz.txt',
|
|
'https://github.com/minoplhy/filters/releases/download/filters-build/stevenblack-f_rpz.txt',
|
|
'https://github.com/minoplhy/filters/releases/download/filters-build/someonewhocares_rpz.txt',
|
|
'https://github.com/minoplhy/filters/releases/download/filters-build/hostsVN-all_rpz.txt',
|
|
'https://github.com/minoplhy/filters/releases/download/filters-build/hosts-database-full-alive_rpz.txt',
|
|
'https://urlhaus.abuse.ch/downloads/rpz/',
|
|
'https://github.com/minoplhy/filters/raw/main/Resources/blocked.txt',
|
|
'https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt',
|
|
'https://github.com/DandelionSprout/adfilt/raw/master/Alternate%20versions%20Anti-Malware%20List/AntiMalwareDomains.txt'
|
|
]
|
|
|
|
crawler.clear_old_files(incoming)
|
|
crawler.download_group_filters(UCATE_SOURCE ,incoming)
|
|
crawler.filtering(incoming)
|
|
crawler.filteringcon(incoming)
|
|
crawler.killingdup(incoming)
|
|
crawler.IP_URL_FILTERING(incoming)
|
|
crawler.excluded(excluded, incoming)
|
|
crawler.blankremover(incoming)
|
|
crawler.sort(incoming)
|
|
maker_rpz.RPZbuilding(excluded, incoming, rpz_locat ,Version)
|
|
maker_hosts.hostsbuilding(excluded, incoming, hosts_locat ,Version)
|
|
maker_abp.ABPbuilding(excluded, incoming, abp_locat ,Version)
|
|
maker_unbound.UNBbuilding(excluded, incoming, unb_locat ,Version)
|
|
maker_dnsmasq.DNQbuilding(excluded, incoming, dnq_locat ,Version)
|
|
maker_domains.domainsbuilding(excluded, incoming ,Version)
|
|
|
|
incoming = "/reprwiki/Private-build/veneto/domains.txt"
|
|
excluded = "/repros/Resources/excluded.txt"
|
|
rpz_locat = "/reprwiki/Private-build/veneto/rpz.txt"
|
|
hosts_locat = "/reprwiki/Private-build/veneto/hosts.txt"
|
|
abp_locat = "/reprwiki/Private-build/veneto/adblock.txt"
|
|
unb_locat = "/reprwiki/Private-build/veneto/unbound.conf.txt"
|
|
dnq_locat = "/reprwiki/Private-build/veneto/dnsmasq.conf.txt"
|
|
Version = "VENETO"
|
|
os.makedirs('/reprwiki/Private-build/veneto',exist_ok=True)
|
|
|
|
VENETO_SOURCE = [
|
|
'https://blokada.org/mirror/v5/exodusprivacy/standard/hosts.txt',
|
|
'https://github.com/crazy-max/WindowsSpyBlocker/raw/master/data/hosts/spy.txt',
|
|
'https://energized.pro/extensions/xtreme/formats/rpz.txt',
|
|
'https://blocklistproject.github.io/Lists/alt-version/ads-nl.txt'
|
|
]
|
|
|
|
crawler.clear_old_files(incoming)
|
|
crawler.download_group_filters(VENETO_SOURCE ,incoming)
|
|
crawler.filtering(incoming)
|
|
crawler.filteringcon(incoming)
|
|
crawler.killingdup(incoming)
|
|
crawler.IP_URL_FILTERING(incoming)
|
|
crawler.excluded(excluded, incoming)
|
|
crawler.blankremover(incoming)
|
|
crawler.sort(incoming)
|
|
maker_rpz.RPZbuilding(excluded, incoming, rpz_locat ,Version)
|
|
maker_hosts.hostsbuilding(excluded, incoming, hosts_locat ,Version)
|
|
maker_abp.ABPbuilding(excluded, incoming, abp_locat ,Version)
|
|
maker_unbound.UNBbuilding(excluded, incoming, unb_locat ,Version)
|
|
maker_dnsmasq.DNQbuilding(excluded, incoming, dnq_locat ,Version)
|
|
maker_domains.domainsbuilding(excluded, incoming ,Version)
|
|
|
|
excluded = "/repros/Resources/excluded.txt"
|
|
os.makedirs('/reprwiki/Private-build/Allowlist',exist_ok=True)
|
|
Version = "Allowlist"
|
|
rpz_locat = "/reprwiki/Private-build/Allowlist/rpz.txt"
|
|
abp_locat = "/reprwiki/Private-build/Allowlist/adblock.txt"
|
|
domains_locat = "/reprwiki/Private-build/Allowlist/domains.txt"
|
|
maker_rpz.RPZallowlist(excluded, rpz_locat ,Version)
|
|
maker_abp.ABPallowlist(excluded, abp_locat ,Version)
|
|
maker_domains.DMallowlist(excluded ,domains_locat ,Version)
|
|
|
|
import version
|
|
het = "/repros/version.md"
|
|
version.build(het)
|