【发布时间】:2013-09-06 17:55:07
【问题描述】:
我正在尝试使用以下 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 格式加载响应。 有什么方法可以将 Search by Image 类型用作“人脸”,以便使用 Python 仅检索人脸?
【问题讨论】:
标签: python google-api google-api-python-client