来自谷歌驱动器的 wget/curl 大文件 - wget/curl large file from google drive

问题:

I'm trying to download a file from google drive in a script, and I'm having a little trouble doing so.我正在尝试使用脚本从谷歌驱动器下载文件,但这样做时遇到了一些麻烦。 The files I'm trying to download are here .我要下载的文件在这里

I've looked online extensively and I finally managed to get one of them to download.我已经在网上广泛地看了,我终于设法让其中之一下载。 I got the UIDs of the files and the smaller one (1.6MB) downloads fine, however the larger file (3.7GB) always redirects to a page which asks me whether I want to proceed with the download without a virus scan.我获得了文件的 UID,较小的文件 (1.6MB) 下载正常,但是较大的文件 (3.7GB) 总是重定向到一个页面,该页面询问我是否要在没有病毒扫描的情况下继续下载。 Could someone help me get past that screen?有人能帮我越过那个屏幕吗?

Here's how I got the first file working -这是我如何使第一个文件工作的 -

curl -L "https://docs.google.com/uc?export=download&id=0Bz-w5tutuZIYeDU0VDRFWG9IVUE" > phlat-1.0.tar.gz

When I run the same on the other file,当我在另一个文件上运行相同的文件时,

curl -L "https://docs.google.com/uc?export=download&id=0Bz-w5tutuZIYY3h5YlMzTjhnbGM" > index4phlat.tar.gz

I get the the following output -我得到以下输出 - 在此处输入图片说明

I notice on the third-to-last line in the link, there a &confirm=JwkK which is a random 4 character string but suggests there's a way to add a confirmation to my URL.我注意到在链接的倒数第三行,有一个&confirm=JwkK ,它是一个随机的 4 个字符的字符串,但建议有一种方法可以向我的 URL 添加确认。 One of the links I visited suggested &confirm=no_antivirus but that's not working.我访问的链接之一建议&confirm=no_antivirus但这不起作用。

I hope someone here can help with this!我希望这里有人可以帮助解决这个问题!


解决方案:

参考一: https://stackoom.com/question/1gwL3
参考二: wget/curl large file from google drive
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章