Library for parsing ABP filter lists
Project description
BlockListParser
Code to detect if a url matches any of the regexes in lists like ad block plus lists
In order to use it,
blocklist_parser = new BlockListParser(regex_file)
or
blocklist_parser = new BlockListParser(regexes) where regexes is comma separated list of regexes
Then to detect if something should be blocked,
blocklist_parser.should_block(ur, options) where options is a dictionary with keys like image, third-party, etc. (look at RegexParser.py for a list of options possible).
Also, use
blocklist_parser.should_block_with_items(url, options) to get the list of regexes which block a certain url
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
abp-blocklist-parser-0.3.tar.gz
(21.3 kB
view hashes)
Built Distribution
Close
Hashes for abp_blocklist_parser-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3a754b9198ef4b637ad4399aac6836a23548dd0427cc4bada05ab26ead8a7f0 |
|
MD5 | d511d3a63d96a4f080a4dec05e0acc31 |
|
BLAKE2b-256 | 070cf1ab65d3fd44789e5f2a8b06fe1e50337ac50d6f5ad266632f5ae23f93a2 |