Thank you very much, but this did not solve the issue,
Also I am trying to use Bing search rather than image search.
Could you please direct me to the document regarding news search (similar to the one I shard in the first post)
I get the following error:
HTTPError Traceback (most recent call last)
<ipython-input-7-808139fa1eb0> in <module>
1 response = requests.get(search_url, headers=headers, params=params)
----> 2 response.raise_for_status()
3 search_results = response.json()
4 thumbnail_urls = [img["thumbnailUrl"] for img in search_results["value"][:16]]
/usr/local/lib/python3.9/site-packages/requests/models.py in raise_for_status(self)
941
942 if http_error_msg:
--> 943 raise HTTPError(http_error_msg, response=self)
944
945 def close(self):
HTTPError: 401 Client Error: PermissionDenied for url: https://api.bing.microsoft.com/v7.0/images/search?q=puppies&license=public&imageType=photo