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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trojmiasto_image_downloader-0.1.0.tar.gz.
File metadata
- Download URL: trojmiasto_image_downloader-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05f5b8114da23f4992118781bfafffa871dc36dd019d1f88e1d2c84a203b6302
|
|
| MD5 |
bebede641a6357dfbd07255303852571
|
|
| BLAKE2b-256 |
b74ccba60ad3a34a1fa4f3d826f99cfc9bf0fdac0944126620346b362c9c39c2
|
File details
Details for the file trojmiasto_image_downloader-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trojmiasto_image_downloader-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
240af83273351d246ac24817b5ea7b0f6cdcfd26f3993e529ece0e26c1d0d01a
|
|
| MD5 |
07aeea4b8261f2dadb72be872f500c48
|
|
| BLAKE2b-256 |
3cb0c7f739380d7f020afadd44eb341d7502fcaa863a2123339b3c88d4055c42
|