-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from steenstra/develop
merge python < 3.10
- Loading branch information
Showing
3 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import sys | ||
from bing_image_downloader import downloader | ||
|
||
query=sys.argv[1] | ||
|
||
if len(sys.argv) == 3: | ||
filter=sys.argv[2] | ||
else: | ||
filter="" | ||
|
||
|
||
downloader.download( | ||
query, | ||
limit=10, | ||
output_dir="dataset", | ||
adult_filter_off=True, | ||
force_replace=False, | ||
timeout=60, | ||
filter=filter, | ||
verbose=True, | ||
) | ||
|