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: about 17 hours 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-16T18:53:09.000Z (about 1 month ago)
- Last Synced: 2025-02-12T12:02:15.830Z (8 days ago)
- Language: Python
- Size: 17.6 KB
- Stars: 270
- Watchers: 12
- Forks: 62
- 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:
This package is on [PyPI](https://pypi.org/project/googledrivedownloader/). Installing is as simple as
```
pip install googledrivedownloader
```### Hello World
```python
from googledrivedownloader import download_file_from_google_drive# Single image file
download_file_from_google_drive(file_id='1H1ett7yg-TdtTt6mj2jwmeGZaC8iY1CH',
dest_path='data/crossing.jpg')
# Zip archive
download_file_from_google_drive(file_id='13nD8T7_Q9fkQzq9bXF2oasuIZWao8uio',
dest_path='data/docs.zip', unzip=True)
```### Tips
* Set `showsize=True` to see the download progress
* Set `overwrite=True` you really want to overwrite an already existent file.