Skip to content

Instantly share code, notes, and snippets.

@starkblaze01
Last active March 27, 2020 17:29
Show Gist options
  • Save starkblaze01/0cc8c791537233f03f5fbb160bd9599f to your computer and use it in GitHub Desktop.
Save starkblaze01/0cc8c791537233f03f5fbb160bd9599f to your computer and use it in GitHub Desktop.

Turn On Anyone with the link can View

Google Drive Shareable Link: "https://drive.google.com/drive/folders/FILE_ID?usp=sharing" or "https://drive.google.com/open?id=FILE_ID" or "https://drive.google.com/uc?id=FILE_ID"

Replace FILE_ID and FILE_NAME in the command below:

Run this command on the terminal:

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=FILE_ID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILE_ID" -O FILE_NAME && rm -rf /tmp/cookies.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment