gpt4 book ai didi

python - 获取公共(public) Google 文档文件的下载链接

转载 作者:太空狗 更新时间:2023-10-29 22:05:58 25 4
gpt4 key购买 nike

阅读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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com