1
我需要一些图像样本进行机器学习培训。我现在没有足够的资源,所以我需要使用搜索引擎来抓取一些资源。谷歌现在不是免费的,我选择bing。如何使用bing search python搜索api来获取图片搜索结果?
我试过pybing。现在看来不行了。
我不知道如何获得appid。
我需要一些图像样本进行机器学习培训。我现在没有足够的资源,所以我需要使用搜索引擎来抓取一些资源。谷歌现在不是免费的,我选择bing。如何使用bing search python搜索api来获取图片搜索结果?
我试过pybing。现在看来不行了。
我不知道如何获得appid。
from py_bing_search import PyBingImageSearch
bing_image = PyBingImageSearch('Your-Api-Key-Here', "x-box console", image_filters='Size:medium+Color:Monochrome') #image_filters is optional
first_fifty_result= bing_image.search(limit=50, format='json') #1-50
print (first_fifty_result[0].media_url)