How to download files from Google Drive via command line

Use the script from circulosmeos/gdown.pl

Step1: Get the script and authorise executive permission

curl -L -O https://raw.githubusercontent.com/circulosmeos/gdown.pl/master/gdown.pl && chmod +x gdown.pl

Step2:

./gdown.pl "Google_drive_file_URL" "desired_filename"

Example:

./gdown.pl https://drive.google.com/open?id=1mcplsMzo3oQcwPjaqAsUxJpZORH4WLek test.txt
cat test.txt
##########################################################
        Congratulation!
        from boblee.cn
        2020-01-29 04:32:24
##########################################################
0 0 vote
Article Rating