Skip to content

Instantly share code, notes, and snippets.

@vinesmsuic
Last active April 6, 2022 09:35
Show Gist options
  • Save vinesmsuic/82a5a7ea0e6b103c3d5437b8428d5614 to your computer and use it in GitHub Desktop.
Save vinesmsuic/82a5a7ea0e6b103c3d5437b8428d5614 to your computer and use it in GitHub Desktop.
download big files on Google Drive

Replace FILEID and FILENAME with id and filename (there are 2 FILEID and 1 FILENAME to replace)

wget – load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget – quiet – save-cookies /tmp/cookies.txt – keep-session-cookies – no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment