A Python library to parse Adblock Plus rules and check if URLs match them. The current version is 0.7, with low release cadence (last release in 2018). It is considered stable but in maintenance mode.
pip install adblockparserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a parser from a list of Adblock Plus rule strings and check URLs.
Always pass an options dict (e.g., {'third-party': False}). If you don't need options, use an empty dict {} – but be aware that rules depending on options won't be applied.Consider alternatives like `adblockclient` or implement custom parsing for newer rules.
Use all lowercase option keys: 'domain', 'third-party', 'script', 'image', 'stylesheet', 'object', 'subdocument', 'xmlhttprequest', 'other'.
No dependency data recorded yet.