A fast and easy adblockplus parser and matcher based on adblock-rust package
Table of Contents
About The Project
This library is a Python binding to the adblock-rust library that was written by Brave's browser team. The binding uses pyo3 to interact with the rust package.
Built With
Installation
pip3 install braveblock
Usage
import braveblock
braveblock.Adblocker(
rules=[
"-advertisement-icon.",
"-advertisement/script.",
]
)
adblocker.check_network_urls(
url="http://example.com/-advertisement-icon.",
source_url="http://example.com/helloworld",
request_type="image",
)
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Gal Ben David - gal@intsights.com
Project Link: https://github.com/intsights/Braveblock