使用Python访问Google Sheets API并不断获取dailyLImitsExceededUnreg错误

使用Python访问Google Sheets API并不断获取dailyLImitsExceededUnreg错误,python,google-sheets-api,Python,Google Sheets Api,在尝试访问GoogleSheetsAPI时,我一直遇到以下错误。它以前是有效的,但现在这种情况不断发生。我检查了配额,重新创建了项目和凭证文件,并确保启用了Google Sheets API和Google Drive API。我已包括以下范围项目: 默认_作用域=['',] 由于oauth2client模块已被弃用,我目前正在使用Google.oauth2模块 有人能帮我解决这个问题吗?如果你需要更多信息,请告诉我 Traceback (most recent call last): Fi

在尝试访问GoogleSheetsAPI时,我一直遇到以下错误。它以前是有效的,但现在这种情况不断发生。我检查了配额,重新创建了项目和凭证文件,并确保启用了Google Sheets API和Google Drive API。我已包括以下范围项目:

默认_作用域=['',]

由于oauth2client模块已被弃用,我目前正在使用Google.oauth2模块

有人能帮我解决这个问题吗?如果你需要更多信息,请告诉我

Traceback (most recent call last):

  File "<filepath>", line 19, in <module>
    cleaned_results = spud.parse_update(search_results)
  File "<filepath>", line 91, in parse_update
    latest_data = Spud.sheet_manager.get_column()
  File "<filepath>", line 49, in get_column
    worksheet = self._get_worksheet(worksheet_number)
  File "<filepath>", line 33, in _get_worksheet
    spreadsheet = self.client.open(self.sheet_name)
  File "<filepath>", line 123, in open
    self.list_spreadsheet_files()
  File "<filepath>", line 96, in list_spreadsheet_files
    res = self.request('get', url, params=params).json()
  File "<filepath>", line 79, in request
    raise APIError(response)
gspread.exceptions.APIError: {
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceededUnreg",
    "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
    "extendedHelp": "https://code.google.com/apis/console"
   }
  ],
  "code": 403,
  "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
 }
}
回溯(最近一次呼叫最后一次):
文件“”,第19行,在
清理结果=spud.parse\u更新(搜索结果)
文件“”,第91行,在parse_update中
最新数据=Spud.sheet\u manager.get\u column()
文件“”,第49行,在get_列中
工作表=自我。获取工作表(工作表编号)
文件“”,第33行,在工作表中
电子表格=self.client.open(self.sheet\u name)
文件“”,第123行,处于打开状态
self.list\u电子表格\u文件()
文件“”,第96行,在列表\电子表格\文件中
res=self.request('get',url,params=params).json()
请求中第79行的文件“”
引发错误(响应)
gspread.exceptions.apirror:{
“错误”:{
“错误”:[
{
“域”:“usageLimits”,
“原因”:“dailyLimitExceededUnreg”,
“消息”:“超出未经验证使用的每日限制。继续使用需要注册。”,
“扩展帮助”:https://code.google.com/apis/console"
}
],
“代码”:403,
“消息”:“超出未经验证使用的每日限制。继续使用需要注册。”
}
}

为了正确了解您的情况,您能否提供完整的脚本?当然,请删除您的个人信息。正如@Tanaike所说,请提供一些代码,以便更容易地排除错误