Giter Site home page Giter Site logo

ghostnetic / adblock-filter-compiler Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 6.0 259.6 MB

Python-based script that combines blocklists, host files, and domain lists to generate an blocklist.

License: MIT License

Python 100.00%
adblock ad-block adblock-filter adblock-list adguard adguard-blocklist adguard-home adguardhome blocklist dns trackers blacklist compiler filter-compiler blocklist-compiler adblock-plus adblockplus privacy python-script

adblock-filter-compiler's Introduction

AdBlock Filter Compiler

This repository offers a Python script that combines and processes various blocklists, host files, and domain lists to produce an AdBlock filter list. A sorted list of domains in AdBlock syntax format is produced after the script eliminates duplicates and redundant rules.

Features

  • Combines multiple blocklists, host files, and domain lists into a single AdBlock filter list
  • Removes duplicate entries
  • Removes redundant rules that are covered by existing domain rules
  • Generates a header with the date, time, domain count, and the number of duplicates and redundant rules removed
  • Allows customization of blocklist sources through a configuration file

Included Filter Lists

This project combines the following filter lists by default:

You can easily add your own filter lists by creating a config.json file and updating the blocklist_urls array with the URLs of your custom filter lists.

Usage

  1. Clone the repository or download the source code.
  2. Create a config.json file and add or remove blocklist URLs in the blocklist_urls array.
  3. Run the adblock_filter_compiler.py script. This will generate the blocklist.txt file with the combined filter list in AdBlock syntax format.

Automated Updates

This repository uses GitHub Actions to automate the filter generation process. The workflow runs every day and updates the blocklist.txt file if there are any changes.

Dependencies

  • Python 3.x
  • requests

Contributing

Feel free to open an issue or submit a pull request if you have any improvements or suggestions.

License

This project is licensed under the MIT License. See the LICENSE file for details.

adblock-filter-compiler's People

Contributors

actions-user avatar ghostnetic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.