Skip to main content

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


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 details)

Uploaded Source

Built Distribution

abp_blocklist_parser-0.3-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file abp-blocklist-parser-0.3.tar.gz.

File metadata

  • Download URL: abp-blocklist-parser-0.3.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9

File hashes

Hashes for abp-blocklist-parser-0.3.tar.gz
Algorithm Hash digest
SHA256 d709dda133d1d6e26ef1ef1099efcf46b67ed40af6e81514f99c4d7e6192d97d
MD5 15675c3526a1f57cb1784b9f9462a0f9
BLAKE2b-256 543439816a936a1875b1f8b7ca1df4bb56b1ef3a333c20473f76e000becab00e

See more details on using hashes here.

File details

Details for the file abp_blocklist_parser-0.3-py3-none-any.whl.

File metadata

  • Download URL: abp_blocklist_parser-0.3-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9

File hashes

Hashes for abp_blocklist_parser-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c3a754b9198ef4b637ad4399aac6836a23548dd0427cc4bada05ab26ead8a7f0
MD5 d511d3a63d96a4f080a4dec05e0acc31
BLAKE2b-256 070cf1ab65d3fd44789e5f2a8b06fe1e50337ac50d6f5ad266632f5ae23f93a2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page