block pornography sites
Project description
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 Blocker
path = "./Home/blocked.txt"
resu = Blocker().loadfile(path)
print(len(resu))
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.2.tar.gz
(9.3 MB
view details)
Built Distribution
File details
Details for the file blockporn-0.1.2.tar.gz
.
File metadata
- Download URL: blockporn-0.1.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b59e32a9b125b77a5ae7cce5bcd0d7c105fc24f14573ef20b15f0ea61976c6c |
|
MD5 | aa81f23463c6ad52193f7d44455ce999 |
|
BLAKE2b-256 | eb2feacd2f2619f41ee1328bc8c32c9ff8bc11f36b39d77d601a353f8f555f69 |
File details
Details for the file blockporn-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: blockporn-0.1.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26105e60cda7620be37c74544e8dcfe4e8c17da6cabb6fa8e75a5b8e8819628e |
|
MD5 | 94029dcd45c99fd9193c74790e6d51ae |
|
BLAKE2b-256 | 39189ecb8492c4a8607cd4ae7f26e3dd3bf6daf2d442ef82dc75a085d0fd6fa4 |