Skip to main content

TorDownloader

Download files from Tor websites. Used to download data from ransomware leak sites.

Uses streamed file downloads and restarts if a file is not fully downloaded. Gets the list of URLs to download either from a JSON file or from another URL (work in progress).

Installing TorDownloader

Using Pip

TorDownloader can be easily installed through pip:

  • First, create a virtual environment: python -m venv .venv
  • Then activate it: .venv\Scripts\activate on Windows or .venv/activate on Linux
  • Finally install the tor_downloader package: python -m pip install tor-downloader

If installing TorDownloader through pip, it will be installed in your Python path. This is important as the path is used for default options such as the output directory, input directory, and log directory. Because of this, you can give TorDownloader the argument path to find the folder TorDownloader was installed into. Example of this command: python -m tor_downloader path

Running TorDownloader

Links must be given to TorDownloader in a JSON file with a single list of links. By default, TorDownloader looks for a links.json file in the tor_downloader/data/input directory.

Configuration options can be given in either a JSON file or as command line arguments. The config file must be a JSON file with a single dictionary. The command line arguments must be formatted like so: CONFIG=SETTING

Configuration options: socks_port: Port of Tor Socks5 proxy. max_downloads: Maximum number of downloads to run at once. max_tor_checks: Number of times the Tor proxy will be checked to ensure Tor is working before crashing. Default is 5. tor_path: Path to the Tor executable (tor.exe). Often found in Tor Browser if installed (Tor Browser\Browser\TorBrowser\Tor\tor.exe). links_file: Path to the file containing the list of URLs to download. Must be a .json file with a single list of URLs. log_file: Path to the log file. Log file will be created if it does not exist. output_dir: Path to the directory to download the files to. config: Path to the configuration file. Only usable through the command line arguments.

Example command: python -m tor_downloader max_downloads=7 tor_path="Tor Browser\\Browser\\TorBrowser\\Tor\\tor.exe" links_file=links.json output_directory=output

Getting Results

All files will be installed into the output directory specified in the config file or command line argument. By default, the output directory is tor_downloader/data/input.

Metadata

Release files for tor-downloader 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tor-downloader 1.0.3
File Size Uploaded
tor_downloader-1.0.3.tar.gz 12.9 kB Details

Release files / tor_downloader-1.0.3.tar.gz

Download URL tor_downloader-1.0.3.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
67e39b0b3e1b871ac7070fad218028a32f8e6abd09f3fdc1c975b8d8cd443e79
BLAKE2b-256 checksum
How to use checksums
b42f87d53dd98803b39471bb50c7051b4d42d378693931601c67a2fc41b170e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page