Skip to content

Instantly share code, notes, and snippets.

@Kapujino
Kapujino / migrateAdlistToAdguard.py
Last active February 13, 2024 16:29
This script adds a plain list of adlists to the adguard configuration AdGuardHome.yaml
#!/usr/bin/python3
import yaml
# load AdGuardHome.yaml
with open('AdGuardHome.yaml', 'r') as file:
data = yaml.load(file, Loader=yaml.FullLoader)
# load file with adlist sources
with open('adlists.txt', 'r') as file: