Skip to main content

Automatically removes trackers from active qBittorrent downloads.

Project description

TrackersRemover-qBittorrent 🗑️

TrackersRemover-qBittorrent is a Python script that connects to qBittorrent's Web UI and removes trackers from torrents once their download speed exceeds a configurable threshold. This can help improve privacy or reduce reliance on certain trackers.


Features

  • Connects to qBittorrent Web UI via qbittorrent-api.
  • Lists torrents and their trackers.
  • Removes non-ignored trackers from torrents actively downloading above a minimum speed.
  • Configurable ignored trackers list and minimum download speed threshold.

Installation

  1. Download the script

    Clone this repository or download the TRqBt.py script directly.

  2. Set up Python environment

    Make sure you have Python 3 installed (tested with Python 3.12).

    Install the required packages via pip:

    pip install qbittorrent-api rich
    
  3. Configure the script

  • Open the TRqBt.py file and update the qBittorrent connection settings to match your setup:

    client = Client(
        host="localhost",   # qBittorrent Web UI address
        port=8080,          # Web UI port
        username="admin",   # Web UI username
        password="123456",  # Web UI password
        VERIFY_WEBUI_CERTIFICATE=False
    )
    
  • Optionally adjust the minimum download speed (in KB/s) to trigger tracker removal:

    MIN_DL_SPEED = 10  # Minimum download speed in KB/s
    
  • You can also customize the list of trackers to ignore (default includes DHT, PeX, LSD):

    IGNORED_TRACKERS = {"** [DHT] **", "** [PeX] **", "** [LSD] **"}
    
  • Run the script

    Make sure qBittorrent is running and the Web UI is enabled.

    python TRqBt.py
    

Usage

The script runs in a loop, periodically checking torrents and removing trackers that meet the criteria. It outputs a formatted table of torrents with their trackers and logs removal actions.

Disclaimer

Removing trackers from torrents goes against the principles of traditional P2P sharing. By using this plugin, you acknowledge and agree:

  • You understand the implications of modifying torrent behavior.
  • You are solely responsible for any consequences that arise from using this plugin.
  • The author(s) of TrackersRemover are not responsible for any misuse or unlawful use of this software.

Notes

This tool is intended for advanced users aware of torrenting implications.

Tested on Python 3.12 and qBittorrent Web UI 5.x.

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

trackersremoverqbt-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trackersremoverqbt-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file trackersremoverqbt-0.1.0.tar.gz.

File metadata

  • Download URL: trackersremoverqbt-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for trackersremoverqbt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a878345ef69edc5d15bb9205e452053209119677ad408c49c93f435c375c531f
MD5 154d204045e1c649c197cdedd69bd298
BLAKE2b-256 312c2116e38ef1c49a903a1653138a2f752cb477c8d4d6b92ff4bcfe3f7a6f54

See more details on using hashes here.

File details

Details for the file trackersremoverqbt-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for trackersremoverqbt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47ee52689a64ad64338aab90fdba4d5b0954622cfeed487591c0a7c3119602dc
MD5 d04d1314d6a45179e96d7e34b700e103
BLAKE2b-256 320c87606c048bb7ec30bf32ef8d5b65d5bcda9feb075522b69a62e0deb18ea1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page