yve*_*owe 8 python google-custom-search google-api-python-client
我想抓取200个结果大约2000个查询,但它给了我"超出每日限制"的错误.
我想确认每天可以抓取多少结果.有没有解决方案可以解决这个问题?或者唯一的方法是每天抓取一小部分查询......?
我抓取谷歌的代码如下:
def crawl(query_list):
http = httplib2.Http()
# Construct the service object for the interacting with the CustomSearch API.
service = discovery.build('customsearch', 'v1', developerKey='my api key', http=http)
res_list = []
for query in query_list:
json_res = service.cse().list(q = query, cx = 'my search engine id', num = 200,).execute()
res_list.append(json_res)
Run Code Online (Sandbox Code Playgroud)
谢谢!