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.2.tar.gz
(21.4 kB
view hashes)
Built Distributions
Close
Hashes for abp_blocklist_parser-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa9a1538bacfa914caec464d39eb26a27ea424a77455db4249d946df196aba1a |
|
MD5 | ec422def903fe6f72cda9c14c1e3f09b |
|
BLAKE2b-256 | 921921b62fcd1dd616c79f687b9b568bc1fb947aa07c358bb007e69b3074bd2e |
Close
Hashes for abp_blocklist_parser-0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c7f8663156bd5ff3d9176952fa29d7c73b5d1d59226e861ae31ce20e9b1511b |
|
MD5 | 97e120d49f81a695130846073c213ce3 |
|
BLAKE2b-256 | f72ccfe11b7651f4f1536f0d482f35d28a4ae04c48b54d5a638260189858a2dc |