Checking & banning BitTorrent leecher peers via Web API, working for uTorrent 3.
Project description
Ban-Peers (English/中文)
Ban-Peers is checking & banning BitTorrent leecher peers via Web API, working for uTorrent 3.
Please use this script in local network, uTorrent Web API does not support HTTPS connections.
Installation
pip install ban-peers
Or download and Install from source code
python setup.py install
Compatibility
- Python >= 3.6
Usage
X:\ban-peers>ban_peers.py -h
Usage:
ban_peers.py [-h] [-H IP|DOMAIN] [-p PORT] [-a USERNAME:PASSWORD]
[-e HOURS] [-f FORMAT]
[IPFILTER-PATH]
Checking & banning BitTorrent leecher peers via Web API, working for uTorrent
3.
Positional Arguments:
IPFILTER-PATH Path of ipfilter dir/file, wait input if empty.
IMPORTANT NOTICE: must be the uTorrent setting path!
Optional Arguments:
-h, --help Show this help message and exit
-H IP|DOMAIN, --host IP|DOMAIN
WebUI host, default 127.0.0.1
-p PORT, --port PORT
WebUI port, default 8080
-a USERNAME:PASSWORD, --authorization USERNAME:PASSWORD
WebUI authorization, wait input if required
-e HOURS, --expire HOURS
Ban expire time for peers, default 12 HOURS
-f FORMAT, --log-header FORMAT
Format of log header, default %H:%M:%S
X:\ban-peers>ban_peers.py X:\utorrent -p 12345 -a username:password
19:44:35 uTorrent auto-banning script start running
Choose your operation: (Q)uit, (S)top, (R)estart, (P)ause/Proceed
or
X:\ban-peers>ban_peers.py
Please input uTorrent setting folder path or ipfilter file path:
X:\utorrent
Please input WebUI username: username
Please input WebUI password: password # No cover
19:44:35 uTorrent auto-banning script start running
Choose your operation: (Q)uit, (S)top, (R)estart, (P)ause/Proceed
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Ban-Peers-0.1.1.tar.gz
(10.7 kB
view hashes)
Built Distribution
Ban_Peers-0.1.1-py3-none-any.whl
(10.8 kB
view hashes)
Close
Hashes for Ban_Peers-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3c9260faaf93fe5f9e3125f20b09d9a0a4e567bf1797be489982371b2e8afd5 |
|
MD5 | 735aefa9edfb34ea94f9d5c31863db11 |
|
BLAKE2b-256 | 1b1b3dc76f871aa9383f177bc43424ee7619530215b756c540298b94efb96c40 |