fastbook icon indicating copy to clipboard operation
fastbook copied to clipboard

Typo in book (or changed Bing API)

Open willjobs opened this issue 4 years ago • 2 comments

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.

willjobs avatar Jan 06 '21 18:01 willjobs

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

Kampmarsvin avatar Feb 03 '21 11:02 Kampmarsvin

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.

prosoitos avatar Apr 14 '21 09:04 prosoitos