Skip to content

Instantly share code, notes, and snippets.

@tstewart
Created May 26, 2020 17:33
Show Gist options
  • Save tstewart/94c06ce73313a4e6eafdf69fe55cab53 to your computer and use it in GitHub Desktop.
Save tstewart/94c06ce73313a4e6eafdf69fe55cab53 to your computer and use it in GitHub Desktop.
#!/bin/bash
fileid="FILEIDENTIFIER"
filename="FILENAME"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment