Compare commits
2 Commits
master
...
missing-ca
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cd39080c01 | ||
![]() |
00e5f694b5 |
23
Makefile
23
Makefile
@ -1,23 +1,20 @@
|
||||
CONVERTER = python3 src/converter.py
|
||||
BLOCKLISTS = seo-nonsense reflink-spam satire mirror
|
||||
TARGET_FORMATS = adguard ublacklist
|
||||
|
||||
TARGETS = $(foreach blocklist, $(BLOCKLISTS), $(foreach targetformat, $(TARGET_FORMATS), dist/$(blocklist)/$(targetformat).txt))
|
||||
# AdGuard
|
||||
dist/seo-nonsense/adguard.txt:: src/seo-source.json
|
||||
$(CONVERTER) --inputfile src/seo-source.json --targetformat adguard --outputfile dist/seo-nonsense/adguard.txt
|
||||
dist/reflink-spam/adguard.txt:: src/reflink-spam-source.json
|
||||
$(CONVERTER) --inputfile src/reflink-spam-source.json --targetformat adguard --outputfile dist/reflink-spam/adguard.txt
|
||||
dist/satire/adguard.txt:: src/satire-source.json
|
||||
$(CONVERTER) --inputfile src/satire-source.json --targetformat adguard --outputfile dist/satire/adguard.txt
|
||||
dist/mirror/adguard.txt:: src/mirror-source.json
|
||||
$(CONVERTER) --inputfile src/mirror-source.json --targetformat adguard --outputfile dist/mirror/adguard.txt
|
||||
|
||||
build: $(TARGETS)
|
||||
|
||||
dist/%/adguard.txt: src/%-source.json
|
||||
mkdir -p dist/$*
|
||||
$(CONVERTER) --inputfile src/$*-source.json --targetformat adguard --outputfile $@
|
||||
build: dist/seo-nonsense/adguard.txt dist/reflink-spam/adguard.txt dist/satire/adguard.txt dist/mirror/adguard.txt
|
||||
|
||||
dist/%/ublacklist.txt: src/%-source.json
|
||||
mkdir -p dist/$*
|
||||
$(CONVERTER) --inputfile src/$*-source.json --targetformat ublacklist --outputfile $@
|
||||
|
||||
clean:
|
||||
rm -rf dist/*
|
||||
|
||||
all: build
|
||||
|
||||
.PHONY: build clean all
|
||||
|
||||
|
7
dist/mirror/adguard.txt
vendored
7
dist/mirror/adguard.txt
vendored
@ -1,7 +0,0 @@
|
||||
! Blocking list automatically generated at 2025-07-05 16:47:21 UTC+0000
|
||||
! Created with ❤️ by internet-czas-dzialac.pl
|
||||
||blog.desdelinux.net^
|
||||
||learntutorials.net^
|
||||
||thefastcode.com^
|
||||
||dailydriven.ro^
|
||||
||practical-tips.com^
|
7
dist/mirror/ublacklist.txt
vendored
7
dist/mirror/ublacklist.txt
vendored
@ -1,7 +0,0 @@
|
||||
# Blocking list automatically generated at 2025-07-05 16:47:21 UTC+0000
|
||||
# Created with ❤️ by internet-czas-dzialac.pl
|
||||
*://*.blog.desdelinux.net/*
|
||||
*://*.learntutorials.net/*
|
||||
*://*.thefastcode.com/*
|
||||
*://*.dailydriven.ro/*
|
||||
*://*.practical-tips.com/*
|
2
dist/reflink-spam/adguard.txt
vendored
2
dist/reflink-spam/adguard.txt
vendored
@ -1,2 +0,0 @@
|
||||
! Blocking list automatically generated at 2025-06-01 20:21:10 UTC+0000
|
||||
! Created with ❤️ by internet-czas-dzialac.pl
|
2
dist/reflink-spam/ublacklist.txt
vendored
2
dist/reflink-spam/ublacklist.txt
vendored
@ -1,2 +0,0 @@
|
||||
# Blocking list automatically generated at 2025-06-01 20:21:10 UTC+0000
|
||||
# Created with ❤️ by internet-czas-dzialac.pl
|
2
dist/satire/adguard.txt
vendored
2
dist/satire/adguard.txt
vendored
@ -1,2 +0,0 @@
|
||||
! Blocking list automatically generated at 2025-06-01 20:21:10 UTC+0000
|
||||
! Created with ❤️ by internet-czas-dzialac.pl
|
2
dist/satire/ublacklist.txt
vendored
2
dist/satire/ublacklist.txt
vendored
@ -1,2 +0,0 @@
|
||||
# Blocking list automatically generated at 2025-05-25 19:55:24 UTC+0000
|
||||
# Created with ❤️ by internet-czas-dzialac.pl
|
7
dist/seo-nonsense/adguard.txt
vendored
7
dist/seo-nonsense/adguard.txt
vendored
@ -1,4 +1,4 @@
|
||||
! Blocking list automatically generated at 2025-07-05 16:04:22 UTC+0000
|
||||
! Blocking list automatically generated at 2025-05-19 18:59:52 UTC+0000
|
||||
! Created with ❤️ by internet-czas-dzialac.pl
|
||||
||forsal.pl^
|
||||
||wiadomosci.dziennik.pl^
|
||||
@ -14,7 +14,4 @@
|
||||
||gospodarka.dziennik.pl^
|
||||
||ekopralnie.pl^
|
||||
||alepranie.com.pl^
|
||||
||aboutdecor.pl^
|
||||
||fabrykahitow.pl^
|
||||
||drzewokorzysci.pl^
|
||||
||netcli.pl^
|
||||
||aboutdecor.pl^
|
69
dist/seo-nonsense/ublacklist.txt
vendored
69
dist/seo-nonsense/ublacklist.txt
vendored
@ -1,20 +1,49 @@
|
||||
# Blocking list automatically generated at 2025-07-05 16:04:22 UTC+0000
|
||||
# Created with ❤️ by internet-czas-dzialac.pl
|
||||
*://*.forsal.pl/*
|
||||
*://*.wiadomosci.dziennik.pl/*
|
||||
*://*.biznes.wprost.pl/*
|
||||
*://*.legaartis.pl/*
|
||||
*://*.superbiz.se.pl/*
|
||||
*://*.pomorska.pl/*
|
||||
*://*.dziendobry.tvn.pl/*
|
||||
*://*.infor.pl/*
|
||||
*://*.wspanialakobieta.pl/*
|
||||
*://*.www.fakt.pl/*
|
||||
*://*.strefabiznesu.pl/*
|
||||
*://*.gospodarka.dziennik.pl/*
|
||||
*://*.ekopralnie.pl/*
|
||||
*://*.alepranie.com.pl/*
|
||||
*://*.aboutdecor.pl/*
|
||||
*://*.fabrykahitow.pl/*
|
||||
*://*.drzewokorzysci.pl/*
|
||||
*://*.netcli.pl/*
|
||||
# witryny, które używają bełkotu SEO - zawsze poparte przykładem
|
||||
|
||||
# https://forsal.pl/kraj/aktualnosci/artykuly-infor-pl/9796010,czy-11052025-r-to-niedziela-handlowa-handel-bez-zakazu-zakupy-w-l.html
|
||||
*://forsal.pl/*
|
||||
|
||||
# https://wiadomosci.dziennik.pl/wydarzenia/artykuly/9739637,czy-dzisiaj-jest-niedziela-handlowa-czy-11-maja-2025-sklepy-i-galerie-sa-otwarte-niedziele-handlowe-w-tym-roku-niedziele-handlowe-w-tym-roku-czy-teraz-jest-niedziela-handlowa-kalendarz-11052025.html
|
||||
*://wiadomosci.dziennik.pl/*
|
||||
|
||||
# https://biznes.wprost.pl/finanse-i-inwestycje/12010876/niedziele-handlowe-2025-r-czy-dzis-zrobimy-zakupy.html
|
||||
*://biznes.wprost.pl/*
|
||||
|
||||
# https://legaartis.pl/blog/2025/05/11/czy-dzis-zrobisz-zakupy-sprawdzamy-czy-to-niedziela-handlowa-i-co-jest-otwarte/
|
||||
*://legaartis.pl/*
|
||||
|
||||
# https://superbiz.se.pl/wiadomosci/niedziele-handlowe-2025-kiedy-zrobimy-zakupy-sprawdz-kalendarz-na-2025-aa-PiKL-kQ7v-4dbi.html
|
||||
*://superbiz.se.pl/*
|
||||
|
||||
# https://pomorska.pl/sklepy-otwarte-11-maja-czy-to-niedziela-handlowa-sprawdz-jak-pracuja-sklepy-11-05-oto-kalendarz-niedziel-handlowych-2025/ar/c1p2-27566083
|
||||
*://pomorska.pl/*
|
||||
|
||||
# https://dziendobry.tvn.pl/newsy/czy-niedziela-11-maja-2025-r-jest-handlowa-gdzie-mozna-zrobic-dzisiaj-zakupy-st7720285
|
||||
*://dziendobry.tvn.pl/*
|
||||
|
||||
# https://www.infor.pl/twoje-pieniadze/zakupy/6929697,dzis-04052025-r-otwarte-galerie-handlowe-zakupy-w-lidlu-i-biedronce-czy-tylko-w-zabce-4-maja-to-niedziela-handlowa-i-czynne-wszystkie-sklepy.html
|
||||
*://www.infor.pl/*
|
||||
|
||||
# https://wspanialakobieta.pl/czy-modem-t-mobile-ma-simlocka/
|
||||
*://wspanialakobieta.pl/*
|
||||
|
||||
# https://www.fakt.pl/pieniadze/czy-11-maja-to-niedziela-handlowa-sprawdz-czy-zrobisz-zakupy/007w6n5
|
||||
*://www.fakt.pl/*
|
||||
|
||||
# https://strefabiznesu.pl/sklepy-otwarte-11-05-czy-dzisiaj-wypada-niedziela-handlowa-gdzie-mozesz-dzis-zrobic-zakupy/ar/c3p1-22848549
|
||||
*://strefabiznesu.pl/*
|
||||
|
||||
# https://gospodarka.dziennik.pl/praca/artykuly/9739637,czy-9-marca-jest-niedziela-handlowa-niedziele-handlowe-2025-czy-0903-sklepy-i-galerie-beda-otwarte-niedziele-handlowe-w-marcu-2025-kalendarz.html
|
||||
*://gospodarka.dziennik.pl/*
|
||||
|
||||
# https://samorzad.infor.pl/wiadomosci/6818633,niedziele-handlowe-w-2025-r-kalendarz-terminy.html
|
||||
*://infor.pl/*
|
||||
|
||||
# https://www.ekopralnie.pl/w-czym-prac-mikrofibre/
|
||||
*://www.ekopralnie.pl/*
|
||||
|
||||
# https://alepranie.com.pl/jak-prac-mikrofibre/
|
||||
*://alepranie.com.pl/*
|
||||
|
||||
# https://aboutdecor.pl/blog/jak-ze-zdjec-zrobic-kolaz-zrob-samodzielnie-kolaz-27
|
||||
*://aboutdecor.pl/*
|
||||
|
@ -52,7 +52,7 @@ def parse_arguments() -> argparse.Namespace:
|
||||
"--targetformat",
|
||||
required=True,
|
||||
metavar="TARGET_FORMAT",
|
||||
help="Target output format (supported formats: adguard, ublacklist)",
|
||||
help="Target output format (e.g., adguard)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--outputfile",
|
||||
@ -76,8 +76,6 @@ def convert(data: dict, last_modified: datetime, target_format: str) -> str:
|
||||
match target_format:
|
||||
case "adguard":
|
||||
return adguard_conversion(last_modified, data)
|
||||
case "ublacklist":
|
||||
return ublacklist_conversion(last_modified, data)
|
||||
case _:
|
||||
raise UnsupportedTargetFormatError
|
||||
|
||||
@ -99,23 +97,6 @@ def adguard_conversion(last_modified: datetime, data: dict) -> list[str]:
|
||||
return "\n".join(output)
|
||||
|
||||
|
||||
def ublacklist_conversion(last_modified: datetime, data: dict) -> list[str]:
|
||||
header_lines: list[str] = [
|
||||
f"# Blocking list automatically generated at {last_modified.strftime('%Y-%m-%d %H:%M:%S %Z%z')}",
|
||||
"# Created with ❤️ by internet-czas-dzialac.pl",
|
||||
]
|
||||
|
||||
output: list[str] = list(header_lines)
|
||||
|
||||
for entry in data["domains"]:
|
||||
fqdn = entry["fqdn"]
|
||||
if entry.get("exclude", False):
|
||||
continue
|
||||
output.append(f"*://*.{fqdn}/*")
|
||||
|
||||
return "\n".join(output)
|
||||
|
||||
|
||||
def dump_output(data: str, output_file: str) -> None:
|
||||
try:
|
||||
directory = os.path.dirname(output_file)
|
||||
|
@ -1,45 +0,0 @@
|
||||
{
|
||||
"domains": [
|
||||
{
|
||||
"fqdn": "blog.desdelinux.net",
|
||||
"date_added": "2025-06-03",
|
||||
"reason": "automatyczne, wadliwe tłumaczenia z języka obcego na polski, które dają w zasadzie fałszywe rezultaty",
|
||||
"evidence": [
|
||||
"https://blog.desdelinux.net/pl/zainstaluj-serwer-xmpp-jabber-z-prozodi%C4%85/",
|
||||
"https://blog.desdelinux.net/pl/Sober-gra-w-Roblox-na-Linuksie/"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fqdn": "learntutorials.net",
|
||||
"date_added": "2025-06-19",
|
||||
"reason": "automatyczne, wadliwe tłumaczenia z języka obcego na polski, które dają w zasadzie fałszywe rezultaty",
|
||||
"evidence": [
|
||||
"https://learntutorials.net/pl/github/topic/3758/zaktualizuj-rozwidlone-repozytorium"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fqdn": "thefastcode.com",
|
||||
"date_added": "2025-06-19",
|
||||
"reason": "automatyczne, wadliwe tłumaczenia z języka obcego na polski, które dają w zasadzie fałszywe rezultaty",
|
||||
"evidence": [
|
||||
"https://www.thefastcode.com/pl-pln/article/how-to-fork-a-github-repository"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fqdn": "dailydriven.ro",
|
||||
"date_added": "2025-06-19",
|
||||
"reason": "automatyczne, wadliwe tłumaczenia z języka obcego na polski, które dają w zasadzie fałszywe rezultaty",
|
||||
"evidence": [
|
||||
"https://dailydriven.ro/pl/jak-wymienic-swiatla-pozycyjne-w-subaru-impreza"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fqdn": "practical-tips.com",
|
||||
"date_added": "2025-07-05",
|
||||
"reason": "automatyczne, wadliwe tłumaczenia z języka obcego na polski, które dają w zasadzie fałszywe rezultaty",
|
||||
"evidence": [
|
||||
"https://www.practical-tips.com/pl/internet/odkurzanie-pajaka-odkurzaczem-oto-co-dzieje-sie-naprawde/"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"domains": []
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"domains": []
|
||||
}
|
@ -120,30 +120,6 @@
|
||||
"evidence": [
|
||||
"https://aboutdecor.pl/blog/jak-ze-zdjec-zrobic-kolaz-zrob-samodzielnie-kolaz-27"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fqdn": "fabrykahitow.pl",
|
||||
"date_added": "2025-06-01",
|
||||
"reason": "",
|
||||
"evidence": [
|
||||
"https://fabrykahitow.pl/blog/emisja-glosu/"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fqdn": "drzewokorzysci.pl",
|
||||
"date_added": "2025-06-01",
|
||||
"reason": "",
|
||||
"evidence": [
|
||||
"https://drzewokorzysci.pl/plomba-swiatloutwardzalna-a-dieta-co-mozna-jesc-po-zalozeniu-plomby/"
|
||||
]
|
||||
},
|
||||
{
|
||||
"fqdn": "netcli.pl",
|
||||
"date_added": "2025-06-22",
|
||||
"reason": "",
|
||||
"evidence": [
|
||||
"https://netcli.pl/ochrona-lakieru-klucz-do-dlugowiecznosci-twojego-samochodu/"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user