我正在尝试使用gspread访问Team Drive上的电子表格。它不起作用。如果电子表格在我的Google Drive上,它就可以工作。我想知道gspread是否有新的Google Drive API v3功能来打开团队驱动器上的电子表格。如果是,我如何指定要在Google Team drive上打开电子表格,而不是在我自己的Google Drive上打开电子表格?如果没有,什么时候可以使用该功能?谢谢!
我在package gspread中使用,我通过将服务帐户添加到电子表格、邀请作为查看器来授予电子表格读取权限。
我能够读取电子表格的内容,但不能获得lastUpdateTime
我看到有例外,
gspread.exceptions.APIError:
{'errors':
[{'domain': 'usageLimits',
'reason': 'accessNotConfigured',
'message': 'Access Not Configured. Drive API has n
努力完成构建python脚本的工作,该脚本旨在从Google电子表格的3个不同列中提取几行文本。
当我运行脚本时,我得到以下错误消息:
File "pr_email_robot.py", line 2, in <module>
import gspread
ImportError: No module named gspread
Pats-MacBook-Pro:pr-email-robot-master patahern$
必须关闭的代码区域是:
import smtplib
import gspread
from gmail_variables i
我试图通过python中的gspread api访问google电子表格。我进口了gspread。我要接插座了。error: [Errno 10061] No connection could be made because the target machine actively refused it at gc = gspread.login('pan*******@gmail.com', '********')
这是我的代码:
import urllib2
import urllib
import gspread
from PIL import Image
我在尝试从Google电子表格API获取数据时遇到了困难。这是完整的代码来源::
# -*- coding: utf-8 -*-
import gspread
import gspread_dataframe as gd
from oauth2client.service_account import ServiceAccountCredentials
# use creds to create a client to interact with the Google Drive API
scope = ['https://spreadsheets.google.com/fe