将Google Spreadsheet转换为HTML Table [英] Converting Google Spreadsheet to HTML Table

查看:118
本文介绍了将Google Spreadsheet转换为HTML Table的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Google电子表格,其中的数据将每周更新一次.我需要将这些数据放入网站上的HTML表中.

I have a Google spreadsheet with data that will be updated on a weekly basis. I need to bring this data into a HTML table on my website.

我可以通过PHP或Javascript查找Google Spreadsheet URL并将数据转换为HTML Table,而不必每次都通过CSV到HTML转换器运行它,而不必每次都更新HTML代码.标签,而无需每次都更改代码?

Rather than running it through a CSV to HTML converter each time and having to update the HTML code each time, is there a way for me to use PHP or Javascript to look up the Google Spreadsheet URL and convert the data to HTML Table tags without me needing to alter the code each time?

推荐答案

您可能对 GD API (关于电子表格的说明 ).

默认下载格式为html.编写脚本并每天使用CRON运行一次,以获取文档的最新版本.

Default download format is html. Write a script and run in using CRON once a day to pull newest version of you document.

这篇关于将Google Spreadsheet转换为HTML Table的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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