获取公共 Google Docs 文件的下载链接 [英] Getting the download link for a public Google Docs file
本文介绍了获取公共 Google Docs 文件的下载链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
阅读 Google Docs API 我发现这个:
文件不能以其他格式下载他们最初上传的那个.下载地址为文件看起来像这样:
Downloading
Files cannot be downloaded in a format other than the one in which they were originally uploaded. The download URL for files looks something like this:
https://doc-04-20-docs.googleusercontent.com/docs/secure/m7an0emtau/WJm12345/YzI2Y2ExYWVm?h=16655626&e=download&gd=true
给定一个公开的 Google 文档文件网址,例如,
Given a public Google Documents file URL, say,
https://docs.google.com/open?id=0B1-vl-dPgKm_NTNhZjZkMWMtZjQxOS00MGE1LTg2MjItNGVjYzdmZjYxNmQ5
如何将其转换为下载链接?
How can I turn it into a download link?
推荐答案
嗨 nightcracker 试试这个:
Hi nightcracker try this:
https://docs.google.com/uc?export=download&id=DOCIDGOESHERE
我只用一个 pdf 试过它,它工作得很好,所以也许玩一下会有所帮助....
I've only tried it with one pdf and it worked ok so maybe having a play with that will help....
一切顺利,
戴夫
这篇关于获取公共 Google Docs 文件的下载链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文