Catalog PyPI
Back to packageRELEASE DETAILS

0.3

PyPI

abp-blocklist-parser

Library for parsing ABP filter lists

Published23 Jan 2020
Direct dependencies0
Transitive dependenciesNot calculated

README

Version 0.3 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

2 collected
abp_blocklist_parser-0.3-py3-none-any.whl

bdist_wheel · 20.75 KB · Python py3

Source file
abp-blocklist-parser-0.3.tar.gz

sdist · 20.77 KB · Python source

Source file

Repository

PENDING
englehardt/abp-blocklist-parser

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:33 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:84e4fc3b4b191fc25f40f9809cf3613fd2d7bf6ca9de6489c90df3b0b04d6035

Other collected versions

View all collected versions →