Bing Image Downloader
Python library to download bulk images from Bing.com. No external dependencies — pure stdlib.
Disclaimer
This program lets you download images from Bing. Please do not download or use any image that violates its copyright terms.
Installation
pip install bing-image-downloader
Or from source:
git clone https://github.com/gurugaurav/bing_image_downloader
cd bing_image_downloader
pip install .
Python API
from bing_image_downloader import download
download(
query,
limit=100,
output_dir='dataset',
adult_filter_off=True,
force_replace=False,
timeout=60,
filter='',
verbose=True,
)
| Parameter | Default | Description |
|---|---|---|
query |
— | Search term |
limit |
100 |
Number of images to download |
output_dir |
'dataset' |
Root directory; images go into <output_dir>/<query>/ |
adult_filter_off |
True |
Set False to enable Bing's adult content filter |
force_replace |
False |
Delete existing output folder and start fresh |
timeout |
60 |
Request timeout in seconds |
filter |
'' |
Image type filter — see options below |
verbose |
True |
Print download progress |
Filter options: line, photo, clipart, gif, animatedgif, transparent
Command-line interface
python -m bing_image_downloader <query> [options]
positional arguments:
query Search query
options:
--limit N Number of images to download (default: 100)
--output-dir DIR Root directory for downloads (default: dataset)
--adult-filter-on Enable adult content filter (default: off)
--filter TYPE Image type: line, photo, clipart, gif, animatedgif, transparent
--timeout SECS Request timeout in seconds (default: 60)
--force-replace Delete existing output directory before downloading
--quiet Suppress progress output
Examples:
# Download 50 cat images
python -m bing_image_downloader "cats" --limit 50
# Download clipart into a custom folder, silently
python -m bing_image_downloader "logo design" --limit 20 --output-dir ./images --filter clipart --quiet
# Fresh download with adult filter enabled
python -m bing_image_downloader "art" --force-replace --adult-filter-on
Running tests
python test.py
PyPI
https://pypi.org/project/bing-image-downloader/
Donate
If this project was helpful, you can buy me a coffee.
Metadata
Release files for bing-image-downloader 1.1.3
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 | Actions |
|---|---|---|---|---|
| bing_image_downloader-1.1.3.tar.gz | 6.1 kB | Without provenance | Details for bing_image_downloader-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bing_image_downloader-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for bing_image_downloader-1.1.3-py3-none-any.whl |
Total release size: 13.6 kB
Release files / bing_image_downloader-1.1.3.tar.gz
| Download URL | bing_image_downloader-1.1.3.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30aaf74d69dea58188059a1588f899fb70a4b948fa2b6a17200796139dd43d5d
|
|
BLAKE2b-256 checksum How to use checksums |
2ea1b6085cca869ed8bc75a346a3588507c9d588f3a62458ea34579350967615
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / bing_image_downloader-1.1.3-py3-none-any.whl
| Download URL | bing_image_downloader-1.1.3-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00bf37b164c920692af539adca9648140606c20d0099e0f94b65cc3a2871ec0c
|
|
BLAKE2b-256 checksum How to use checksums |
e9021f095c0dc1d3a460d44d45d42a8b9dc3fce28a14bb8547cb6fe226d7cd08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for bing-image-downloader 1.1.3
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.