Forked version of bing_image_downloader with support for resizing, file types, and size filters
Project description
Forked Bing Image Downloader
Overview
This is a forked version of Bing Image Downloader with additional features. This Python library allows you to download a bulk of images from Bing.com.
New Features
size: (optional, default is "") Size of image, choose from [small, medium, large, wallpaper].resize_dim: (optional, default isNone) Resize the image to given dimensions, e.g., (256, 256).file_types: (optional, default isNonewhich means all types) Choose from 'jpg', 'png', 'gif', 'bmp'.
Disclaimer
This program lets you download tons of images from Bing. Please do not download or use any image that violates its copyright terms.
Installation
Variant 1: From PyPI
First, uninstall the original bing_image_donwloader if installed:
pip uninstall bing_image_downloader -y
Then install the forked version:
pip install bing-image-downloader-ext
Variant 2: From GitHub
pip install git+https://github.com/loglux/bing_image_downloader.git
or
git clone https://github.com/loglux/bing_image_downloader
cd bing_image_downloader
pip install .
Usage
from bing_image_downloader import downloader
search_queries = ["grizzly bear", "black bear", "teddy bear"]
for query in search_queries:
downloader.download(query,
limit=100,
output_dir='dataset',
adult_filter_off=True,
force_replace=False,
timeout=5,
verbose=True,
size="medium",
resize_dim=(224, 224),
file_types='jpg,png')
Parameters
query_string : String to be searched.
limit : (optional, default is 100) Number of images to download.
output_dir : (optional, default is 'dataset') Name of output dir.
adult_filter_off : (optional, default is True) Enable of disable adult filteration.
force_replace : (optional, default is False) Delete folder if present and start a fresh download.
timeout : (optional, default is 60) timeout for connection in seconds.
filter : (optional, default is "") filter, choose from [line, photo, clipart, gif, transparent]
verbose : (optional, default is True) Enable downloaded message.
size: (optional, default is "") Size of image, choose from [small, medium, large, wallpaper].resize_dim: (optional, default isNone) Resize the image to given dimensions, e.g., (256, 256).file_types: (optional, default isNonewhich means all types) Choose from 'jpg', 'png', 'gif', 'bmp'.
Original Bing Image Downloader
Project details
Release history Release notifications | RSS feed
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 bing_image_downloader_ext-1.1.4.tar.gz.
File metadata
- Download URL: bing_image_downloader_ext-1.1.4.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9220800c9d609331e5f1058d10672c40b18a46587b3cfb56bf0991ba11dc77d
|
|
| MD5 |
1ec947110ca317fa100cf86f6e0cb743
|
|
| BLAKE2b-256 |
893cf6cfc0427b59e2bcdb76be66ee92e688dcd202b7a29e6283142f4d5112f9
|
File details
Details for the file bing_image_downloader_ext-1.1.4-py3-none-any.whl.
File metadata
- Download URL: bing_image_downloader_ext-1.1.4-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa3da06e7919bdb7b2819f500660c39628ecf1d3f340925a2938c43a2f2a6ffa
|
|
| MD5 |
2da184ed93e444e64403c04f506dca29
|
|
| BLAKE2b-256 |
cc1ed6079c006beee24447ef2ccd57e7a5e4092f6d53cc57c00c428ea6759ba3
|