bing_image_downloader icon indicating copy to clipboard operation
bing_image_downloader copied to clipboard

Add no_directory option when saving image to filesystem

Open NickT5 opened this issue 3 years ago • 0 comments

I added a no_directory option so the user can choose if the images will be downloaded and saved in the output directory with no extra "query" directory. This option is false by default.

This is based on the no_directory option from https://google-images-download.readthedocs.io/en/latest/arguments.html

Command line example:

python
from bing_image_downloader import downloader 
downloader.download("cat", limit=2, output_dir='dataset', no_directory=True)

This will save the images in /dataset/ instead of /dataset/cat/

NickT5 avatar Sep 05 '20 11:09 NickT5