Metadata-Version: 2.1
Name: img_dlder
Version: 0.0.1
Summary: 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.
Author: Donut Anti
Author-email: donutanti@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: DateTime (>=5.5,<6.0)
Requires-Dist: Pillow (>=9.5.0,<10.0.0)
Requires-Dist: fetch_images (>=0.1.0,<0.2.0)
Requires-Dist: requests (>=2.32.3,<3.0.0)
Requires-Dist: tqdm (>=4.66.4,<5.0.0)
Description-Content-Type: text/markdown

# 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:
```bash
pip install img_dlder
```

```bash
pip install requests Pillow tqdm
```

### Example Usage:
```python
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

