Skip to content

Instantly share code, notes, and snippets.

@rokibhasansagar
Last active April 26, 2018 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rokibhasansagar/6d6345fa8d2619d512e019c704246a1a to your computer and use it in GitHub Desktop.
Save rokibhasansagar/6d6345fa8d2619d512e019c704246a1a to your computer and use it in GitHub Desktop.
Command for Downloading any big file from GDrive (for big file we may need to confirm download):
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
Replace the FILEID from the URL after ".../file/d/**********/view" and put in the two places
Replace the FILENAME as the original Filename.extention or whatever you want the file to be saved as
Credits to: @beliys [https://github.com/beliys]
I'm just Copying :p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment