阅读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 文档文件 URL,
https://docs.google.com/open?id=0B1-vl-dPgKm_NTNhZjZkMWMtZjQxOS00MGE1LTg2MjItNGVjYzdmZjYxNmQ5
如何将其变成下载链接?
最佳答案
嗨 nightcracker 试试这个:
https://docs.google.com/uc?export=download&id=DOCIDGOESHERE
我只用一个 pdf 试过它,它工作正常,所以也许玩一下它会有所帮助....
祝一切顺利
戴夫
关于python - 获取公共(public) Google 文档文件的下载链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9045392/