Skip to content

Instantly share code, notes, and snippets.

@sitemapxml
Created March 26, 2020 00:55
Show Gist options
  • Save sitemapxml/d99f2cc9ce79ec1ca003e42363adfd1c to your computer and use it in GitHub Desktop.
Save sitemapxml/d99f2cc9ce79ec1ca003e42363adfd1c to your computer and use it in GitHub Desktop.
Preuzimanje fajlova sa google drive-a
#!/bin/bash
fileid=""
filename="file.zip"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment