Skip to content

Instantly share code, notes, and snippets.

@jacKlinc
Last active December 14, 2020 16:05
Show Gist options
  • Save jacKlinc/9b75da33ec9ccf55b02eeed91605b719 to your computer and use it in GitHub Desktop.
Save jacKlinc/9b75da33ec9ccf55b02eeed91605b719 to your computer and use it in GitHub Desktop.
Image Data Curation
def make_category(cat, path, label):
if not path.exists():
path.mkdir()
dest = (path/label)
dest.mkdir(exist_ok=True)
results = search_images_bing(key, cat)
download_images(dest, urls=results.attrgot('contentUrl'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment