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
from Blockporn import Blocker
path = "./Home/blocked.txt"
urls = LoadeR.loadfile(path)
url = "https://xxx.com"
core = Blocker(block=urls)
resu = core.blocker(url)
print(resu)
LICENSE
The MIT License. Please see License File for more information.
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.7.tar.gz
(9.3 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blockporn-0.1.7.tar.gz.
File metadata
- Download URL: blockporn-0.1.7.tar.gz
- Upload date:
- Size: 9.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca153d6cda0e35c614c2b2a38f03232d857c65a6d99f1ded74bc18a097ad095e
|
|
| MD5 |
1c6ae5ca07cc85ac916ca959ebe8473b
|
|
| BLAKE2b-256 |
0a9218532dd2e94182ff439c81ebacd3602428ccc67de10c6c12d35e3700df76
|
File details
Details for the file blockporn-0.1.7-py3-none-any.whl.
File metadata
- Download URL: blockporn-0.1.7-py3-none-any.whl
- Upload date:
- Size: 9.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3be86282c671fae90ac5c76a511dc4f355f468a7e6814051e0ded4e6bc6ba459
|
|
| MD5 |
2f6bc62a114ef2608b0973f9d879eda8
|
|
| BLAKE2b-256 |
f9b0dc7bb9c4f9af6dd729a0283a9c663b6121dc5ed6a2c83239a1ca3a64cf9d
|