Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how download google drive file with wget

// Files smaller than 100MB
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O FILENAME

// Files bigger than 100MB
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
/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
Comment

google drive file download link using wget

curl -L "https://docs.google.com/uc?export=download&id=0Bz-w5tutuZIYY3h5YlMzTjhnbGM" > index4phlat.tar.gz
Comment

wget files from google drive

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
/p')&id=FILEID" -O backup.zip && rm -rf /tmp/cookies.txt
Comment

wget file from google drive

# download_gdrive.sh
#!/bin/bash

FILEID=$1
FILENAME=$2

# Files bigger than 100MB
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
/p')&id=${FILEID}" -O $FILENAME && rm -rf /tmp/cookies.txt

$ > download_gdrive.sh $GOOGLE_DRIVE_FILEID $OUTPUT_FILE_NAME
Comment

PREVIOUS NEXT
Code Example
Shell :: pip not installing packages 
Shell :: how to activate virtual environment in ubuntu 
Shell :: add a new line at the end of this file in powershell 
Shell :: run sh with parameter 
Shell :: gem install version 
Shell :: @material-ui/icons 
Shell :: vim reverse lines 
Shell :: .gitignore 
Shell :: bash path ubuntu 
Shell :: git commit single file 
Shell :: bash get file size in mb 
Shell :: conda install pymodbus 
Shell :: conda command to install folium 
Shell :: run mongodb locally 
Shell :: using yarn in docker 
Shell :: linux shell parameter 
Shell :: unix get epoch in miliseconds shell 
Shell :: bash if is link simbolico 
Shell :: Install Strimio on ubuntu 
Shell :: You need to have the Android SDK Build-tools installed on your system 
Shell :: strapi run command 
Shell :: append to a file from terminal 
Shell :: generate new ssh key 
Shell :: npm install mailchimp 
Shell :: scan and print all keys redis shell 
Shell :: how to change hostname in kali linux 
Shell :: read file line loop in bash 
Shell :: powershell sharepoint copy file to other site collection 
Shell :: tar command 
Shell :: Flatpak in linux 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =