From 9486a0c7a867d1dfd777fb07b4d06af5fb32e713 Mon Sep 17 00:00:00 2001 From: quindecim <49964366+quindecim@users.noreply.github.com> Date: Wed, 16 Nov 2022 01:25:32 +0100 Subject: [PATCH] Add instructions for Windows users --- README.md | 6 ++++++ config/generate-domains-blocklist.py | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6e04dfe..48478d3 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,13 @@ domains-allowlist.txt | quindecim | Legit domains collection. | [LINK](https://g ## Build To generate your own list you can clone this repo, move into the `config` folder, edit files according to your needs and run this command: + +#### Linux ``` python3 generate-domains-blocklist.py > list.txt.tmp && mv -f list.txt.tmp list ``` +#### Windows +``` +py generate-domains-blocklist.py > list.txt +``` diff --git a/config/generate-domains-blocklist.py b/config/generate-domains-blocklist.py index 80ef1ba..e2f5b5a 100644 --- a/config/generate-domains-blocklist.py +++ b/config/generate-domains-blocklist.py @@ -1,6 +1,7 @@ #! /usr/bin/env python3 -# run with python3 generate-domains-blocklist.py > list.txt.tmp && mv -f list.txt.tmp list +# Linux, run with: python3 generate-domains-blocklist.py > list.txt.tmp && mv -f list.txt.tmp list +# Windows, run with: py generate-domains-blocklist.py > list.txt import argparse import re