Skip to content

Instantly share code, notes, and snippets.

@yashkumaratri
Created May 20, 2020 15:28
Show Gist options
  • Save yashkumaratri/6aa81bf5b4a289565d9af0f6811269bf to your computer and use it in GitHub Desktop.
Save yashkumaratri/6aa81bf5b4a289565d9af0f6811269bf to your computer and use it in GitHub Desktop.
Download google drive files by wget
For small files
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=1rC6LWGNkHaZkuojCEWDqSKcDGwFMBTYZ' -O transformer_semeval.clf
For large files
wget --load-cookies cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1rC6LWGNkHaZkuojCEWDqSKcDGwFMBTYZ' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1rC6LWGNkHaZkuojCEWDqSKcDGwFMBTYZ" -O transformer_semeval.clf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment