以 HTML 格式下载 Google Docs 电子表格 [英] Download a Google Docs Spreadsheet as HTML

查看:18
本文介绍了以 HTML 格式下载 Google Docs 电子表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有 php 的 Google Drive api 来做各种美妙的事情,但在下载 HTML 格式的电子表格时遇到了困难.我可以使用 getExportLinks() 方法以各种格式下载它,但我想要的只是表格中的文本,而不是 docx 或 ods 中的格式化文件.

Im using the Google Drive api with php to do all sorts of wonderful things but getting stuck with downloading a Spreadsheet in HTML format. I can use the getExportLinks() method to download it in its various formats, but all i want is the text from the sheet and not a formatted file in docx or ods.

这可以通过使用/feeds/download/spreadsheets/Export?exportFormat=html&format=html&key=ID url 的 google docs api 实现.但目前在我使用时被重定向.

This was possible with the google docs api by using the /feeds/download/spreadsheets/Export?exportFormat=html&format=html&key=ID url. But currently being redirected when I use it.

是否可以使用驱动 api 以 html 格式下载电子表格?

Is it possible to download a spreadsheet as html using the drive api?

推荐答案

只需将exportLink中的exportformat改成html即可.

Just change the exportformat in the exportLink to html.

这篇关于以 HTML 格式下载 Google Docs 电子表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆