Hey @YutongTie-5848 , I am currently using the ImageSearchClient api and getting a 'Resource Not Found error' (full error posted below). Is only the REST API available or is the ImageSearchClient API for Python also available?
---------------------------------------------------------------------------
ErrorResponseException Traceback (most recent call last)
<ipython-input-5-f9ef654a8ee3> in <module>
9 #results = search_images_google(google_key, f'{o}')
10 #download_images(dest, urls=results.attrgot('link'))
---> 11 results = search_images_bing(ms_key, f'{o}')
12 download_images(dest, urls=resutls.attrgot('content_url'))
13
/notebooks/personal/climax/easter-egg/utils.py in search_images_bing(key, term, min_sz)
31 def search_images_bing(key, term, min_sz=128):
32 client = api("https://api.bing.microsoft.com/v7.0/images/search", auth(key))
---> 33 return L(client.images.search(query=term, count=150, min_height=min_sz, min_width=min_sz).value)
34
35 def search_images_google(key, term, min_sz=128, start=1, num=10,exp=False, search_engine="1255cf7ee95a87668"):
/opt/conda/envs/fastai/lib/python3.8/site-packages/azure/cognitiveservices/search/imagesearch/operations/_images_operations.py in search(self, query, accept_language, user_agent, client_id, client_ip, location, aspect, color, country_code, count, freshness, height, id, image_content, image_type, license, market, max_file_size, max_height, max_width, min_file_size, min_height, min_width, offset, safe_search, size, set_lang, width, custom_headers, raw, **operation_config)
489
490 if response.status_code not in [200]:
--> 491 raise models.ErrorResponseException(self._deserialize, response)
492
493 deserialized = None
ErrorResponseException: Operation returned an invalid status code 'Resource Not Found'