braveblock-0.5.0
توضیحات
A fast and easy adblockplus parser and matcher based on adblock-rust package
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | braveblock-0.5.0 |
| نام | braveblock |
| نسخه کتابخانه | 0.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gal Ben David <gal@intsights.com> |
| ایمیل نویسنده | Gal Ben David <gal@intsights.com> |
| آدرس صفحه اصلی | https://github.com/intsights/braveblock |
| آدرس اینترنتی | https://pypi.org/project/braveblock/ |
| مجوز | MIT |
<p align="center">
<a href="https://github.com/intsights/Braveblock">
<img src="https://raw.githubusercontent.com/intsights/Braveblock/master/images/logo.png" alt="Logo">
</a>
<h3 align="center">
A fast and easy adblockplus parser and matcher based on adblock-rust package
</h3>
</p>




[](https://pypi.org/project/Braveblock/)
## Table of Contents
- [Table of Contents](#table-of-contents)
- [About The Project](#about-the-project)
- [Built With](#built-with)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Contact](#contact)
## About The Project
This library is a Python binding to the [adblock-rust](https://github.com/brave/adblock-rust) library that was written by Brave's browser team. The binding uses [pyo3](https://github.com/PyO3/pyo3) to interact with the rust package.
### Built With
* [pyo3](https://github.com/PyO3/pyo3)
* [adblock-rust](https://github.com/brave/adblock-rust)
### Installation
```sh
pip3 install braveblock
```
## Usage
```python
import braveblock
# Initialize the engine loaded with a rules list
# One can download easylist and load its lines into the engine
braveblock.Adblocker(
rules=[
"-advertisement-icon.",
"-advertisement/script.",
]
)
# This function checks whether the specified url should be blocked
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](https://github.com/intsights/Braveblock)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl braveblock-0.5.0:
pip install braveblock-0.5.0.whl
نصب پکیج tar.gz braveblock-0.5.0:
pip install braveblock-0.5.0.tar.gz