adblockparser
Parser for Adblock Plus rules
Decision gist · record as of 2026-08-14
No. The package is abandoned (last commit 2019, last release 2016) with no active maintenance. While it has low install friction and no security vulnerabilities, the lack of updates means it may not handle modern Adblock Plus syntax changes or work reliably on current Python versions. Use only if you have a legacy codebase already depending on it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- pyre2 library is optional but highly recommended for performance; it requires C++ re2 library installed on the system.
- Low install friction with no runtime dependencies.
- However, the package is abandoned as of 2019 with no active maintenance, and the last release was in 2016.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, requiring only license and copyright notice inclusion.
last release 2016-10-17 (3588 days) · last repo commit 2019-02-20 · 202 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 140,832 downloads/mo, #11,263 on PyPI
Alternatives
Verify before relying
pip install adblockparser
from adblockparser import AdblockRules
raw_rules = ["||ads.example.com^", "@@||ads.example.com/notbanner^$~script"]
rules = AdblockRules(raw_rules)
rules.should_block("http://ads.example.com")- Whether the package works reliably with Python versions beyond 3.5, given its abandoned status
- Current compatibility with recent Adblock Plus filter syntax changes since 2016
- Whether pyre2 optional dependency remains available and functional on current systems
What it is and what it does
adblockparser is a Python library for parsing and applying Adblock Plus filter rules. It reads filter rules (either manually written or from sources like EasyList) and provides a method to check whether a given URL should be blocked according to those rules. The library handles both simple wildcard-style filters and more complex rules with options like domain-specific matching and script-type filtering.
The package creates large regex patterns internally to match filters efficiently. It optionally integrates with pyre2 for dramatic performance improvements—potentially over 1000x faster for large filter lists. Without pyre2, it falls back to Python's standard re module. Rules with options are evaluated individually, which can be slower with thousands of such rules, but the library provides configuration options to optimize this scenario.
Use it for
- Build a web scraper or crawler that respects Adblock Plus rules to avoid fetching blocked resources
- Implement ad filtering in a browser extension or application using standard filter lists
- Filter URLs in a content management system or proxy to block ads and trackers based on EasyList rules
- Test URL filtering logic by programmatically checking whether specific URLs match filter rules
- Load and apply custom Adblock Plus filters to control which domains or resources are accessible
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last commit 2019, last release 2016) with no active maintenance. While it has low install friction and no security vulnerabilities, the lack of updates means it may not handle modern Adblock Plus syntax changes or work reliably on current Python versions. Use only if you have a legacy codebase already depending on it.
Install
adblockparser on PyPI
Before you install
Low install friction with no runtime dependencies. However, the package is abandoned as of 2019 with no active maintenance, and the last release was in 2016.
pyre2 library is optional but highly recommended for performance; it requires C++ re2 library installed on the system.
License in practice
MIT license permits commercial and private use with minimal restrictions, requiring only license and copyright notice inclusion.
Quickstart
pip install adblockparser
from adblockparser import AdblockRules
raw_rules = ["||ads.example.com^", "@@||ads.example.com/notbanner^$~script"]
rules = AdblockRules(raw_rules)
rules.should_block("http://ads.example.com")
Verify before relying
- Whether the package works reliably with Python versions beyond 3.5, given its abandoned status
- Current compatibility with recent Adblock Plus filter syntax changes since 2016
- Whether pyre2 optional dependency remains available and functional on current systems
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 3,588 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 140,832 / month, #11,263 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5 |
Evidence: adblockparser-0.7-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “adblock plus filter parsing”
- adblockparserParses Adblock Plus filter rules and matches URLs against them to…
- PyFunceble-devPyFunceble checks whether domains, IPs, and URLs are available or…
- georss-generic-clientProvides generic access to GeoRSS feeds with location-based filtering…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also django-filter · pybgpkit-parser · django-more-admin-filters · rfc3986-validator · django-admin-autocomplete-filter · djangorestframework-filters · gitignorant · igittigitt · courlan