Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deven96/drive_downloader
Package to download files from google drive given shared link
https://github.com/deven96/drive_downloader
downloader google-drive python-library
Last synced: about 1 month ago
JSON representation
Package to download files from google drive given shared link
- Host: GitHub
- URL: https://github.com/deven96/drive_downloader
- Owner: deven96
- License: mit
- Created: 2018-12-13T00:00:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T20:36:35.000Z (7 months ago)
- Last Synced: 2024-05-29T11:31:13.538Z (7 months ago)
- Topics: downloader, google-drive, python-library
- Language: Python
- Homepage:
- Size: 106 KB
- Stars: 10
- Watchers: 3
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GdDownloader
Package to download files from google drive given shared link
[![Build Status](https://travis-ci.org/deven96/drive_downloader.svg?branch=master)](https://travis-ci.com/deven96/drive_downloader) [![PyPI version](https://badge.fury.io/py/GdDownloader.svg)](https://badge.fury.io/py/GdDownloader)![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=deven96_drive_downloader&metric=alert_status) [![Coverage Status](https://coveralls.io/repos/github/deven96/drive_downloader/badge.svg?branch=master)](https://coveralls.io/github/deven96/drive_downloader?branch=master)
- [GdDownloader](#gddownloader)
- [Installation](#installation)
- [Development](#development)
- [Documentation](#documentation)
- [Running the tests](#running-the-tests)
- [Usage](#usage)
- [Contribution](#contribution)
- [License (MIT)](#license-mit)## Installation
```bash
pip install gddownloader
```## Development
```bash
git clone [email protected]:deven96/drive_downloader.git
```## Documentation
[Github Pages](https://deven96.github.io/drive_downloader)
## Running the tests
```bash
cd drive_downloader/gddownloader/
``````bash
python tests/__init__.py
```## Usage
Files can be downloaded from google drive providing one has a valid shared link.
One of two ways can be used to download the files : Single or according to an [example csv](gddownloader/example.csv)```python
from gddownloader.core import GDownloader, CsvGDownloader# Single download
share_link = r"https://drive.google.com/open?id=1Rp4Pu257IlfuoFX3sEarm8Mgl75vi1U5"
dwnloader = GDownloader(share_link)
print(gdwnloader.download_link)
dwnloader.download()# multiple download with csv
csv_path = "example.csv"
csvdwnloader = CsvGDownloader(csv_path)
print(round(csvdwnloader.total_size, 0))
csvdwnloader.download()
```## Contribution
You are very welcome to modify and use them in your own projects.
Please keep a link to the [original repository](https://github.com/deven96/drive_downloader). If you have made a fork with substantial modifications that you feel may be useful, then please [open a new issue on GitHub](https://github.com/deven96/drive_downloader/issues) with a link and short description.
## License (MIT)
This project is opened under the [MIT 2.0 License](https://github.com/deven96/drive_downloader/blob/master/LICENSE) which allows very broad use for both academic and commercial purposes.