I am trying In Google Drive, how can you link directly to "Download" a zip file and not view the contents? but it does not work. I am not sure on how to repeat the question. It downloads a 'file is too big to be antivirus scanned' warning HTML and when I try https://drive.google.com/uc?export=download&confirm=no_antivirus&id=
it still downloads that.
Edit: I tried to wget --save-cookies /tmp/cookie.txt --load-cookies /tmp/cookie.txt
and repeat it, still no dice.
Best Answer
A cookie must match the "confirm" url parameter, and it is changed on each call.
Here's a perl script to download these files in an unattended way.
With the url from the antivirus scan warning page (https://drive.google.com/uc?export=download&confirm=s5vl&id=XXX) this code should be enough: