This program lets you download tons of images from Bing. Please do not download or use any image that violates its copyright terms.
git clone https://github.com/KTS-o7better_bing_image_downloader
cd better_bing_image_downloader
pip install .
or
pip install better-bing-image-downloader
from better_bing_image_downloader import download
download.download(query_string, limit=100, output_dir='dataset', adult_filter_off=True, force_replace=False, timeout=60, verbose=True)
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.
bad-sites
: (optional, defualt is empty list) Can limit the query to not access the bad sites.
This project is licensed under the terms of the MIT license.
If you have any questions or feedback, please contact us at email.