niammuddin

download file google drive from terminal

Sep 24th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. 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
  2.  
  3.  
  4. wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O FILENAME
  5.  
  6. https://gist.github.com/iamtekeste/3cdfd0366ebfd2c0d805
  7. https://medium.com/tinghaochen/how-to-download-files-from-google-drive-through-terminal-4a6802707dbb
Add Comment
Please, Sign In to add comment