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. The inspiration for this fork came from the book Deep Learning for Coders with Fastai and PyTorch, aiming to create a free tool for preparing datasets.
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'.label_filename: Using the image's label as its filename.
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_type='jpg,png',
label_filename=False)
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_type: (optional, default isNonewhich means all types) Choose from 'jpg', 'png', 'gif', 'bmp'.label_filename: (optional, default is False) Whether to use the image's label as its filename.
Original Bing Image Downloader
Metadata
Release files for bing-image-downloader-ext 1.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bing_image_downloader_ext-1.1.6.tar.gz | 5.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bing_image_downloader_ext-1.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.4 kB
Release files / bing_image_downloader_ext-1.1.6.tar.gz
| Download URL | bing_image_downloader_ext-1.1.6.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97b2ef55141e8185dbf4506b667bfcd3d65ea9517bc2bafe5f888b9c861fd6bd
|
|
BLAKE2b-256 checksum How to use checksums |
45796707df249027d3a454ec7d84f5536ef7201fe8b199c29cf61a4ce2ea52f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / bing_image_downloader_ext-1.1.6-py3-none-any.whl
| Download URL | bing_image_downloader_ext-1.1.6-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6938974b209ce2de02b7477485e504bed3b509dde9e22db6b419ea1ffa6fcae
|
|
BLAKE2b-256 checksum How to use checksums |
eced123af63729151b7518d10eb3a9eb33b3d02c7952d52265743529bdff8d4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for bing-image-downloader-ext 1.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.