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.4.tar.gz (6.6 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.4-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for trojmiasto_image_downloader-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e12ebdbcd92e3e34cf664a1afa0c94e9aece02e626b4b7f0f60273dab395d2b3
MD5 7032c36e0d2c70fe37eca46b4cd14ae6
BLAKE2b-256 b9856b871251dd2d2a636ff72848f0bc22eb2a3808b64f8f86d4931418c195ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for trojmiasto_image_downloader-0.1.4.tar.gz:

Publisher: release.yaml on MatWojewodzki/trojmiasto-image-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for trojmiasto_image_downloader-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f1f15949be8bac61c978135eae79a94acf7c10acecb2373fc9f7c7c99699ea50
MD5 38c1761eef6bd884834eed811b3d96b9
BLAKE2b-256 5bf885896eff7274d8bbd0d1ff68311e4dcecde30be132bf0f7c940d4ef57095

See more details on using hashes here.

Provenance

The following attestation bundles were made for trojmiasto_image_downloader-0.1.4-py3-none-any.whl:

Publisher: release.yaml on MatWojewodzki/trojmiasto-image-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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