Skip to main content

Download dark web files using Tor.

Project description

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.

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

tor_downloader-1.0.3.tar.gz (12.9 kB view details)

Uploaded Source

File details

Details for the file tor_downloader-1.0.3.tar.gz.

File metadata

  • Download URL: tor_downloader-1.0.3.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for tor_downloader-1.0.3.tar.gz
Algorithm Hash digest
SHA256 67e39b0b3e1b871ac7070fad218028a32f8e6abd09f3fdc1c975b8d8cd443e79
MD5 1d1376d3fd2e7dbcd11c7c4041ba981c
BLAKE2b-256 b42f87d53dd98803b39471bb50c7051b4d42d378693931601c67a2fc41b170e9

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