Domain list generator
Project description
- Author:
dnslist is a Python package that allows to easily load domain list from various sources and merge them together. It is mainly used for merging ads/malware domain list together.
1 Installation
1.1 Requirements
dnslist requires Python 3. It has been tested on Python 3.6 on Linux. For dependencies, see requirements.txt file.
1.2 From github
You can clone this repository and install it with setuptools directly:
$ python3 setup.py install --user
1.3 From pip
As every pip available package, you can install it easily with the pip package:
$ python3 -m pip install --user dnslist
2 Usage
dnslist comes with both a Python module and an executable tool. You will more lilely want to use the executable directly.
2.1 Configuration
First, you will need to create a configuration file with toml syntax:
[source.yoyo] url = "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0"
This file should most likely resides in ~/.config/dnslst/config.toml
2.2 Generation
Then you can just execute the dnslist executable tool:
$ dnslist domains.txt
This should generate a domain.txt file in the current working directory.
2.3 Template
You can customize how the generated file looks like by providing a moustache template:
$ dnslist -t <path/to/template.moustache> domains.txt
If you need help with moustache syntax, you can check out the:
Officiel moustache website: https://mustache.github.io/
Underlying rendering module: https://github.com/noahmorrison/chevron
2.4 Examples
Take a look at the examples/ directory for some classic configurations or templates.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dnslist-0.2.tar.gz
.
File metadata
- Download URL: dnslist-0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a7bff402af4c87e96555f9e2453c86e117e509894782db311217b81d342dfc1 |
|
MD5 | f1ff8cd56b370b20ad49d9b350164082 |
|
BLAKE2b-256 | b5436bd28f1a789e727b1f2337e44df720a53a8d442c1c86e0c47bea72d35cd5 |