Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/332.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 我如何在没有API的情况下从Google工作表中读取数据?_Python_Pandas_Google Sheets - Fatal编程技术网

Python 我如何在没有API的情况下从Google工作表中读取数据?

Python 我如何在没有API的情况下从Google工作表中读取数据?,python,pandas,google-sheets,Python,Pandas,Google Sheets,我不是这张表的所有者,我只有“仅评论”权限。有可能吗?我试着用熊猫阅读,但我只得到了html代码 import pandas as pd sheet_id = '11111111111wU' sheet_name = 'UA' url = f'https://docs.google.com/spreadsheets/d/{sheet_id}/gviz/tq?tqx=out:csv&sheet={sheet_name}' df = pd.read_csv(url, error_bad

我不是这张表的所有者,我只有“仅评论”权限。有可能吗?我试着用熊猫阅读,但我只得到了html代码

import pandas as pd

sheet_id = '11111111111wU'
sheet_name = 'UA'

url = f'https://docs.google.com/spreadsheets/d/{sheet_id}/gviz/tq?tqx=out:csv&sheet={sheet_name}'

df = pd.read_csv(url, error_bad_lines=False)

print(df)

为什么床单不符合您的要求?您是否尝试过使用python驱动API客户端并检索文件本身?