Skip to main content

A Python package for downloading images from the web based on a query. It fetches image URLs based on the specified query and downloads the images to a specified destination directory.

Project description

img_dlder

img_dlder is a Python package designed for downloading and saving images from various sources.

Installation

You can install img_dlder via pip:

pip install img_dlder
pip install requests Pillow tqdm

Example Usage:

from img_dlder.img_dler import ImgDownloader
# Initialize ImgDownloader
downloader = ImgDownloader()
# Specify the search query and the number of images to fetch and download
query = "cat"
num_images = 10
destination_directory = "./downloaded_images"
# Download images based on the query
try:
    downloader.dl_imgs(query, num_images, destination_directory)
        print(f"Successfully downloaded and saved images to {destination_directory}")
except ValueError as e:
    print(f"Error: {e}")

%ls

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

img_dlder-0.0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

img_dlder-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file img_dlder-0.0.1.tar.gz.

File metadata

  • Download URL: img_dlder-0.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.13 Linux/5.15.133+

File hashes

Hashes for img_dlder-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a92e1161479fc1da71fbce4c7da52458591e5a8e22c8efb4ee572a253700b4f1
MD5 14043b71f7932be65d23dfe93e65653b
BLAKE2b-256 ef27f61497dd54fbddb0f2cb4b197be38590cf227f458f13e2583aeac9efff11

See more details on using hashes here.

File details

Details for the file img_dlder-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: img_dlder-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.13 Linux/5.15.133+

File hashes

Hashes for img_dlder-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f52ee3fe6d7989f88e974aeb7147f1c5cd7be836bfa41fd01fb0ec88adb8bce
MD5 e764e9461b21aa98fbc9bb3edfd2c3c9
BLAKE2b-256 0251087f728caca15e0ca46f5a53861cfa274f6a778a19761531bd2f5d7a0176

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