Let me share my solution to the issue many people experiencing now when trying to run Lesson 2 notebook - bing_image_search doesn’t work.
Long story short. The search_images_bing method from utils.py uses Azure SDK that uses Bing API which is available if you create new Bing Search API v7 from Azure portal (Looks like microsoft is doing some changes to the services structure and bing search services).
To solve it, I created my own bing search function in my notebook, that uses requests module only, instead of Azure Python SDK
Rest of the notebook code that uses the method needs small adoption. Instead of getting content_url attribute, not it is contentUrl, e.g.:
Change any occurence of code like this results.attrgot('content_url') into that results.attrgot('contentUrl').
Marcin’s solution did not work for me - tells me I don’t have a correct key, though I’m copying it straight from my azure account (tried both keys even).
Also Charles’ solution doesn’t work - it does downloads pictures but they are completely irrelevant, even though I used “grizzly”, “black bear” and “teddy bear” as written.
Can anyone advise me on that?