在Python中使用Google图像搜索API时,对图像类型使用“Face”过滤器

在Python中使用Google图像搜索API时,对图像类型使用“Face”过滤器,python,google-api,google-api-python-client,Python,Google Api,Google Api Python Client,我正在尝试使用以下Python代码从Google抓取图像: BASE_URL = 'https://ajax.googleapis.com/ajax/services/search/images?v=1.0&rsz=large&q=%s&start=%d' BASE_URL = BASE_URL %(name, count) request = urllib2.Request(BASE_URL) response = urllib2.urlopen(request)

我正在尝试使用以下Python代码从Google抓取图像:

BASE_URL = 'https://ajax.googleapis.com/ajax/services/search/images?v=1.0&rsz=large&q=%s&start=%d'

BASE_URL = BASE_URL %(name, count)
request = urllib2.Request(BASE_URL)
response = urllib2.urlopen(request)
然后我使用simplejson以JSON格式加载响应。
是否有任何方法可以将“按图像类型搜索”用作“面”,以便使用Python仅检索面?

您的答案在此处的参数列表中:


你好,那个链接不起作用。也许效果更好。遍历支持的属性并查看细化元素>图像类型