获取公共 Google 文档文件的下载链接
阅读 Google Docs API 我发现:
下载
无法以其他格式下载文件 它们最初上传的那个。下载地址为 文件看起来像这样:
https://doc-04-20-docs.googleusercontent.com/docs/secure/m7an0emtau/WJm12345/YzI2Y2ExYWVm?h=16655626&e=download&gd=true
给定一个公共 Google 文档文件 URL,比如说,
https://docs.google.com/open?id=0B1-vl-dPgKm_NTNhZjZkMWMtZjQxOS00MGE1LTg2MjItNGVjYzdmZjYxNmQ5
如何将其转换为下载链接?
Reading the Google Docs API I find this:
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
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嗨,nightcracker,试试这个:
我只用一个 pdf 尝试过,它工作正常,所以也许玩一下会有所帮助......
祝一切顺利,
戴夫
Hi nightcracker try this:
I've only tried it with one pdf and it worked ok so maybe having a play with that will help....
All the best,
Dave
dkcwd 建议的方法不适用于已发布的文档。
我在此页面。给定发布文档 URL,例如
下载链接,
其中
[FORMAT]
可以是以下值之一:pdf, doc, docx, oo, rtf, txt
。The method suggested by dkcwd didn't work for a published document.
I have found the following method in this page. Given a publish document URL, such as
The download link is
where
[FORMAT]
can be one of these values:pdf, doc, docx, oo, rtf, txt
.