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

Updating

Using uv

uv tool upgrade trojmiasto-image-downloader

Using pipx

pipx upgrade trojmiasto-image-downloader

Using pip

# Activate the virtual environment
# On macOS/Linux:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate

pip install --upgrade 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]
  • -v, --version: Display the current version and exit.
  • --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.2.tar.gz (6.7 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.2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for trojmiasto_image_downloader-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d453947e0eb185a20da075b67100d9f836528976abecf8fc0873012062ac2ff2
MD5 343059714b294691c23beda25307654e
BLAKE2b-256 1d237daae5985fad7df4942c1ddd9829e82aa7d2e65f664469aa9116fb188395

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for trojmiasto_image_downloader-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5e38bb3b6e9007d6e3c38f7eae1613489c2e02e9eea40c7e916907226a86f87
MD5 32bb43b07ac3bed37540e671e08a5dff
BLAKE2b-256 62258af4daf1de8ee9996bcb9b2fafd912ccb022c66e3fab15d6b26521ad612b

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