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 install psycopg2 error fedora 
Shell :: conda install django rest framework 
Shell :: Missing essential plugin: org.jetbrains.android Please reinstall Android Studio from 
Shell :: Usage: yarn [options] yarn: error: no such option: --template 
Shell :: script dir bash 
Shell :: bash unzip all files 
Shell :: install video studio code arm64 
Shell :: install teamviewer linux mint 
Shell :: batch substring 
Shell :: install mysql linux mint 
Shell :: error mounting /dev/sdb1 at /media/ 
Shell :: size of directory ps windows 
Shell :: bash check if process is running by name 
Shell :: process substitution <() bash 
Shell :: traceroute ubuntu command 
Shell :: clear pacman cahce 
Shell :: git replace master with branch 
Shell :: git stash remove 
Shell :: check codedeploy agent status 
Shell :: remove snap package 
Shell :: kill all process that match in grep 
Shell :: -bash: /usr/bin/composer: No such file or directory 
Shell :: ubuntu see if package is installed 
Shell :: save account to git 
Shell :: brew xampp 
Shell :: install atom ubuntu terminal 
Shell :: curl without progress 
Shell :: mac find application using port 
Shell :: kubectl delete all pods 
Shell :: tesseract installation in Arch linux 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =