Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add no_directory option when saving image to filesystem #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NickT5
Copy link

@NickT5 NickT5 commented Sep 5, 2020

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants