Created
June 11, 2017 05:05
-
-
Save arth2o/c4b9d762d97ac04530d98e675a28ddce to your computer and use it in GitHub Desktop.
Wget dowload file from Google Drive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*Step 1, Get the confirmation code:* | |
wget --save-cookies cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILE_ID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/Code: \1\n/p' | |
*Step 2, Get the file:* | |
wget --load-cookies cookies.txt 'https://docs.google.com/uc?export=download&confirm=CODE_HERE&id=FILE_ID' | |
---- | |
CODE_HERE: You will get after run step 1. | |
FILE_ID: long string | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment