Skip to main content

CLI tool for downloading image galleries from trojmiasto.pl (not affiliated with trojmiasto.pl).

Project description

trojmiasto-image-downloader

A command-line tool for downloading image galleries from the trojmiasto.pl website. It allows users to easily fetch and save photos from galleries inside articles to their local machine for offline viewing or archival purposes.

This project is an independent, open-source utility and is not affiliated with, endorsed by, or associated with trojmiasto.pl. All trademarks and content belong to their respective owners. Users are responsible for ensuring their use of the tool complies with the website’s terms of service and applicable laws.

Installation

Using uv

Install uv if you haven't already. Then:

uv tool install trojmiasto-image-downloader

Using pipx

Install pipx if you haven't already. Then:

pipx install trojmiasto-image-downloader

Using pip

# Create a virtual environment
python -m venv .venv

# Activate it
# On macOS/Linux:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate

# Install the package
pip install trojmiasto-image-downloader

Usage

$ tid [OPTIONS] ARTICLE_URL [DESTINATION_DIRECTORY]

Arguments:

  • ARTICLE_URL: URL of an article at trojmiasto.pl containing the image gallery. [required]
  • [DESTINATION_DIRECTORY]: Destination directory to save the downloaded images to. Defaults to the current working directory.

Options:

  • -s, --start-idx INDEX: Index of the first image to download, counting from one. If not set, downloads images from the first one.
  • -e, --end-idx INTEGER: Index of the last image to download, counting from one. If not set, downloads images up to the last one.
  • --respect-robots-txt / --ignore-robots-txt: Respect robots.txt rules when making requests (recommended). This will override --delay for the specific hosts if necessary. [default: respect-robots-txt]
  • -d, --delay INTEGER: Number of milliseconds to wait before performing the next request to the same host. [default: 1000]
  • -c, --max-concurrency INTEGER: Max number of concurrent connections. [default: 1]
  • -t, --timeout INTEGER: Timeout in seconds. [default: 10]
  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

License

MIT

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

trojmiasto_image_downloader-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

trojmiasto_image_downloader-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for trojmiasto_image_downloader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 05f5b8114da23f4992118781bfafffa871dc36dd019d1f88e1d2c84a203b6302
MD5 bebede641a6357dfbd07255303852571
BLAKE2b-256 b74ccba60ad3a34a1fa4f3d826f99cfc9bf0fdac0944126620346b362c9c39c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trojmiasto_image_downloader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 240af83273351d246ac24817b5ea7b0f6cdcfd26f3993e529ece0e26c1d0d01a
MD5 07aeea4b8261f2dadb72be872f500c48
BLAKE2b-256 3cb0c7f739380d7f020afadd44eb341d7502fcaa863a2123339b3c88d4055c42

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