Go to the home


SCheck Blocklist

Python package enabling seamless integration with the SCheck Blocklist datasets

Actually Version: 1.1.0
Our Websites: scheck-blocklist.vercel.app

Installation

To download a library from PyPI via pip just use the command:

pip install scheckbl

Quick Start

Below is sample code showing the syntax:

from scheckbl import blocklist

c = blocklist.check("phrases", "vulgarisms", "f*ck")        # output: True
f = blocklist.find("phrases", "vulgarisms", "I f*ck you")    # output: True
g = blocklist.get("urls", "ads")                              # output: list
s = blocklist.similar("phrases", "vulgarisms", "f*uck", 0.3) # output: json

API Reference

blocklist.check

Checks whether a given keyword is present in the specified blocklist.

📌 Note: If keyword is a URL, the last segment (after the last /) is automatically extracted before checking.


blocklist.find

Checks whether any part of the keyword string contains entries from the blocklist.

📌 Note: Just like check(), URLs will be trimmed to their final segment.


blocklist.get

Retrieves the full blocklist for the given category.


blocklist.similar

Finds entries in the blocklist that are similar to the input phrase.


Click for Github Docs Version