Skip to main content

block pornography sites

Project description

📦 BLOCK PORN

telegram badge telegram badge telegram badge

INSTALLATION

  pip install blockporn

USAGE

from Blockporn import Blocker

url = "https://xxx.com"

resu = Blocker().blocker(url)

print(resu)
#======[ ADD MORE SITES ]======

from Blockporn import Blocker

url = "https://xxx.dc"

blok = ["xxx.db", "xxx.dc"]

core = Blocker(block=blok)

resu = core.blocker(url)

print(resu)
#======[ CUSTOM BLOCK ]======

from Blockporn import Blocker

url = "https://xxx.me"

blok = ["xxx.me", "xxx.ms"]

core = Blocker(block=blok)

resu = core.blocked(url)

print(resu)
#======[ LOAD FILE ]======

from Blockporn import LoadeR

path = "./Home/blocked.txt"

resu = LoadeR.loadfile(path)

print(len(resu))

11M+ Domains blocked.txt file

LICENSE

The MIT License. Please see License File for more information.

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

blockporn-0.1.3.tar.gz (9.3 MB view details)

Uploaded Source

Built Distribution

blockporn-0.1.3-py3-none-any.whl (9.4 MB view details)

Uploaded Python 3

File details

Details for the file blockporn-0.1.3.tar.gz.

File metadata

  • Download URL: blockporn-0.1.3.tar.gz
  • Upload date:
  • Size: 9.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for blockporn-0.1.3.tar.gz
Algorithm Hash digest
SHA256 99f9ded3636000e42affd62dcf2b1fbb2dd5b4d2de165de02066092d54f1ad10
MD5 47c44f2e362652fb028ce42fdc8677c5
BLAKE2b-256 74fab55b9157945355421a852bf10b52a4cc882d43ea71155e82ff2e8ff29db1

See more details on using hashes here.

File details

Details for the file blockporn-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: blockporn-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for blockporn-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 055b657fba35d98712c88f41e1e90ef569750ca6872455e92171cfed579d40e1
MD5 dd603f7eaae413f844595117d5e085e9
BLAKE2b-256 06c8acfe8f3cc86121d56b8223cf998d8529a4c36a7fdf9d8c354269abbfd8c6

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