2017-05-27 64 views

回答

1

您应该检查谷歌自定义搜索API,通过类型alows过滤

https://developers.google.com/custom-search/json-api/v1/reference/cse/list

请求将会像

https://www.googleapis.com/customsearch/v1?googlehost=google.co.uk&safe=medium&searchType=image&key= {apikey} & CX = {cseId} & q = {搜索}

查看更多这里 https://lornajane.net/posts/2013/doing-google-custom-search-via-api

要使用图片作为源,你可以使用Picasso

+0

你的答案镬我。只记得在CSE中有图像搜索的选项,该选项必须是yes(默认不是不幸)。 –