Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ndrplz/google-drive-downloader
Minimal class to download shared files from Google Drive.
https://github.com/ndrplz/google-drive-downloader
Last synced: 9 days ago
JSON representation
Minimal class to download shared files from Google Drive.
- Host: GitHub
- URL: https://github.com/ndrplz/google-drive-downloader
- Owner: ndrplz
- License: mit
- Created: 2017-12-08T12:34:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-17T00:14:33.000Z (almost 2 years ago)
- Last Synced: 2024-10-02T00:12:09.786Z (about 1 month ago)
- Language: Python
- Size: 13.7 KB
- Stars: 267
- Watchers: 13
- Forks: 63
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# google-drive-downloader
Minimal class to download shared files from Google Drive.### How to install:
Installing is as simple as```
pip install googledrivedownloader
```### Hello World
You will need to obtain the sharable link from Google Drive:```python
from google_drive_downloader import GoogleDriveDownloader as gddgdd.download_file_from_google_drive(file_id='1iytA1n2z4go3uVCwE__vIKouTKyIDjEq',
dest_path='./data/mnist.zip',
unzip=True)
```
This will download a `mnist.zip` file into a `data` folder and unzip it.### Tips
* Set `showsize=True` to see the download progress
* Set `overwrite=True` you really want to overwrite an already existent file.