- 😡🤬🥵 Are you anxious about downloading the big files from the google drive?
- 😫😖😨 Do you want a cross platform (Linux/Windows) download tool for downloading tool for fetch files in a stable way?
- 🙀😿😾 Have you experienced the anxiety when downloading a lot of data but be noticed "Too many users have viewed or downloaded"?
Then this Tool is ALL YOU WANT
- Visit the Google Cloud Console https://console.cloud.google.com/
- Create a new project
- Enable the "Google Drive API"
- Create a OAuth2.0 Credentails
- Visit the APIs&Service -> Credentials, press CREATE CREDENTIALS and choose OAuth client ID
and select a type you want (typecally 'Desktop app')
- Now you can get your Client ID and Client Secret
- If you haven't agreed the OAuth consent screen, you have to config your settings first
- Enable the Google Driver in the API Library
- Add your account into the test users
- Authorize your account to this Client, Replace the CLIENT ID with yours in this URL and get the AUTHORIZATION_CODE https://accounts.google.com/o/oauth2/v2/auth?scope=https://www.googleapis.com/auth/drive&access_type=offline&include_granted_scopes=true&response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=urn:ietf:wg:oauth:2.0:oob
- Do not close the page and paste the AUTHORIZATION_CODE into get_fresh.sh, then you will get you Refresh Token and Access Token. - Please note that, the Access Token will be expired in 1 hour but Refresh Token can last for 7 days, so that's why we need update the Access Token while downloading.
- For now, you've got every token you need before download from your google driver
- Replace your API Tokens in download.sh
- Replace
FOLDER_ID
with the folder/file ID, take 'https://drive.google.com/file/d/1Nca0w_sNB5lAMY1Oh9iXvdc1K2H_AC8r/view?usp=drive_link' for example, the file ID is '1Nca0w_sNB5lAMY1Oh9iXvdc1K2H_AC8r'
Any issue and PR are welcomed!.
MIT