Skip to content

JohnStyleZ/curlGdrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

curlGdrive

Script for Downloading google Drive files!

Instruction

  1. get access token from google Oauth2.0 playground please follw the steps carefully!

open this link - https://developers.google.com/oauthplayground/

 https://www.googleapis.com/auth/drive.readonly

copt the link bellow and paste it in the input, as the picture bellow, then click Authorize APIs!

please allow google and sign into your google account, it will redirect you back to the APIs page.

  1. click the "Exchange authorization code for tokens" button and generate the access tokens

  1. go to Configure request to API, copy the url down bellow and paste it in the input. click send the Request
https://developers.google.com/oauthplayground

done! in the right side of the page you will see in the Request/Response Authorization: Bearer!

example : ya29.a0ARrdaM9vxNgZDsNZ1oozwkqB9WXXxxxxxxxxxxxxxxxxxxFT88rmqbchVW2p-XXxxxxxxxxxxxxxxxXXXXXPO5pDIO-gFhDjy-Z-kHUIBiIJe8_AeQvNFz7WADmXxxxxxxxxxxxxxxxx_r8gKw1Lz

Please copy Authorization: Bearer you will need it later! run the follwing commands

  sudo apt-get install git nano curl -y

clone the repositories

  git clone https://github.com/JohnStyleZ/curlGdrive.git && cd curlGdrive && chmod +x script.sh && sed -i -e 's/\r$//' script.sh && nano script.sh

the nano text editor will open, in the link 40 edit the YourToken to your Authorization: Bearer credentials once you did it! press Ctrl+x then Y and Enter! done!

Eecute the script by following command!

  ./scrip.sh

fill the inputs as it is required, all you need is url id and then your file name including its extension. ID Example: 1g9vAW-lkfGPDlBBlI6-wV48-4OPkHIvJ

Enjoy!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages