Hi, I am getting the following error when trying to use your solution:
File “”, line 1
for q in [“grizzly”, “black bear”, “teddy bear”]:
^
SyntaxError: invalid character in identifier
Any idea???
Also, if there is no need for a key, how do you then handle the following (see the bolded line) a few cells later?
if not path.exists():
path.mkdir()
for o in bear_types:
dest = (path/o)
dest.mkdir(exist_ok=True)
results = search_images_bing(key, f’{o} bear’)
download_images(dest, urls=results.attrgot(‘content_url’))