معرفی شرکت ها


blocklist-aggregator-0.8.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Domains blocklist aggregator
ویژگی مقدار
سیستم عامل -
نام فایل blocklist-aggregator-0.8.0
نام blocklist-aggregator
نسخه کتابخانه 0.8.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Denis MACHARD
ایمیل نویسنده d.machard@gmail.com
آدرس صفحه اصلی https://github.com/dmachard/blocklist-aggregator
آدرس اینترنتی https://pypi.org/project/blocklist-aggregator/
مجوز -
# Blocklist aggregator ![Testing](https://github.com/dmachard/blocklist-aggregator/workflows/Testing/badge.svg) ![Build](https://github.com/dmachard/blocklist-aggregator/workflows/Build/badge.svg) ![Publish](https://github.com/dmachard/blocklist-aggregator/workflows/Publish%20to%20PyPI/badge.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/blocklist_aggregator) This python module does the aggregation of several ads/tracking/malware lists, and merges them into a unified list with duplicates removed. See the **[blocklist-domains](https://github.com/dmachard/blocklist-domains)** repository for an implementation. Default sources: - [x] winhelp2002.mvps.org - [x] adaway.org - [x] StevenBlack - [x] urlhaus.abuse.ch - [x] pgl.yoyo.org - [x] someonewhocares.org - [x] notracking - [x] davidonzo/Threat-Intel - [x] mitchellkrogza/Badd-Boyz-Hosts - [x] PolishFiltersTeam/KADhosts - [x] lists.disconnect.me - [x] notracking/hosts-blocklists - [x] easylist.to - [x] paulgb/BarbBlock ## Table of contents * [Installation](#installation) * [Get Started](#get-started) * [Custom Configuration](#custom-configuration) * [Fetch and save-it to files](#fetch-and-save-it-to-files) ## Installation If you want to generate your own unified blocklist, install this module with the pip command. ```python pip install blocklist_aggregator ``` ## Get started This basic example enable to get a unified list of domains. You can save-it in a file or do what you want. ```python import blocklist_aggregator unified = blocklist_aggregator.fetch() print(unified) [ "doubleclick.net", ..., "telemetry.dropbox.com" ] print(len(unified)) 152978 ``` ## Custom configuration See the default [configuration file](../main/blocklist_aggregator/blocklist.conf) The configuration contains: - the ads/tracking/malware URL lists with the pattern (regex) to use - the domains list to exclude (whitelist) - additionnal domains list to block (blacklist) The configuration can be overwritten at runtime. ```python cfg_yaml = "verbose: true" unified = blocklist_aggregator.fetch(cfg_update=cfg_yaml) ``` or loaded from external config file ```python unified = blocklist_aggregator.fetch(cfg_filename="/home/custom-blocklist.conf") ``` ## Fetch and save-it to files This module can be used to export the list in several format: - text - hosts - CDB (key/value database) ```python import blocklist_aggregator # fetch domains unified = blocklist_aggregator.fetch() # save to a text file blocklist_aggregator.save_raw(filename="/tmp/unified_list.txt") # save to hosts file blocklist_aggregator.save_hosts(filename="/tmp/unified_hosts.txt", ip="0.0.0.0") # save to CDB blocklist_aggregator.save_cdb(filename="/tmp/unified_domains.cdb") ``` ## For developpers Run test units ```bash python3 -m unittest discover tests/ -v ```


نیازمندی

مقدار نام
- pyyaml
- requests
- pure-cdb


نحوه نصب


نصب پکیج whl blocklist-aggregator-0.8.0:

    pip install blocklist-aggregator-0.8.0.whl


نصب پکیج tar.gz blocklist-aggregator-0.8.0:

    pip install blocklist-aggregator-0.8.0.tar.gz