https://github.com/phhandong/google_drive_download
Download the big files from google drive with CLI in Linux/Windows
https://github.com/phhandong/google_drive_download
curl downloader google google-driver python
Last synced: 3 months ago
JSON representation
Download the big files from google drive with CLI in Linux/Windows
- Host: GitHub
- URL: https://github.com/phhandong/google_drive_download
- Owner: phhandong
- License: mit
- Created: 2025-03-01T06:44:25.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-15T07:10:05.000Z (3 months ago)
- Last Synced: 2025-03-15T08:19:31.249Z (3 months ago)
- Topics: curl, downloader, google, google-driver, python
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Google Drive Download Tool
[]()

[](https://github.com/phhandong/Google_Drive_Download/issues)
[](https://github.com/phhandong/Google_Drive_Download/pulls)
[](/LICENSE)---
- π‘π€¬π₯΅ 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**
# π§ Usage
## Preparing
1. Visit the Google Cloud Console https://console.cloud.google.com/
2. Create a new project 
3. Enable the "Google Drive API" 
4. 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.5. For now, you've got every token you need before download from your google driver
## π Run the download tool
1. Replace your API Tokens in download.sh
2. 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'## π―ββοΈ Contribution
**Any** issue and PR are welcomed!.
## π License
`MIT`
## β€οΈ Acknowledgement
- [google-ads-python](https://github.com/googleads/google-ads-python)
- [gdown](https://github.com/wkentaro/gdown)