[英]how to retrieve hyperlinks in spreadsheet cells using gspread?
I am not able to retrieve hyperlinks in google spreadsheet cells using gspread.我无法使用 gspread 检索 Google 电子表格单元格中的超链接。 I am always returned the text of the cell and not the hyperlink itself.
我总是返回单元格的文本,而不是超链接本身。
I have attempted我尝试过
worksheet.cell(i, j, value_render_option="FORMULA")
with all the three possible options for value_render_option
and none of them works.具有
value_render_option
的所有三个可能选项,但它们都不起作用。
I have seen some old answers here about using input_value
, that unfortunately is not supported anymore我在这里看到了一些关于使用
input_value
的旧答案,不幸的是不再支持
If your cell content is something like如果您的单元格内容类似于
=HYPERLINK("http://www.wikipedia.de","wikipedia")
try尝试
cell = worksheet.cell(i, j, value_render_option='FORMULA').value
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.