创建 link 以从 Google 云端硬盘下载整个电子表格

Creating a link to download whole spreadsheet from Google Drive

我想在 google 驱动器上为我的传播sheet 创建下载 link,我读到了类似的内容:

https://docs.google.com/spreadsheets/d/MY_SPREADSHEET/export?format=csv

但它只先下载 sheet。我读过 GID 参数,但我不想花时间开发从 API 获取所有 GID,然后下载每个 sheet 的东西。有什么方法可以让一个 link 导致下载整个传播sheet?

您可能想尝试 Labnol's guide 中的建议:

Open your Google Spreadsheet in the browser, make the sheet Public (or Anyone with a link) and make a note of the shared URL. It should be something like this:

https://docs.google.com/spreadsheets/d/FILE_ID/edit?usp=sharing

The direct download links use a similar format as Google Documents and will read like:

https://docs.google.com/spreadsheets/d/FILE_ID/export?format=xlsx https://docs.google.com/spreadsheets/d/FILE_ID/export?format=pdf

除此之外,您可能还想尝试使用此 中建议的 URL,看看是否有帮助。

https://docs.google.com/spreadsheets/u/1/d/${id}/export?format=csv&id=${id}&gid=${gid}