fastbook
fastbook copied to clipboard
Typo in book (or changed Bing API)
On page 66 in the book, or about 1/3 of the way down in the chapter 2 jupyter notebook, when searching on Bing and extracting the URLs, the book shows this line of code:
ims = results.attrgot('content_url')
However, the Bing API actually expects it to be 'contentUrl'. If you run it as is, ims gets a list of None.
The Bing API has changed, I have written a new search method that works, but am trying to figure out how to make a pull request for it
Maybe this could help?
https://docs.microsoft.com/en-us/answers/questions/153209/bing-image-search-api-error-401-permission-denied.html
Although you are already using bing instead of cognitive ... so probably not.