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 INTEGER: 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: 30]
  • --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.1.tar.gz (6.5 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.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for trojmiasto_image_downloader-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5c1bdd0bd64379e5232063defc10e34395e37f010099f77430341d671a9f5af5
MD5 5bfc86129b541b2111ffc4ab183eeea9
BLAKE2b-256 a5b9c1b756b18a83db8cf925f339d1c56b1dd265089d0b567c2964b9d50065ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trojmiasto_image_downloader-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a634fed9c76f734e96a139987c9fbade1f94c943e677db0486ff72d53356f9b
MD5 625ab2746a15fe50d902000831149735
BLAKE2b-256 fa1cd0a378baadacac1b2f39128391f98f581a295d1a17c44e50ab8517318ec3

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