Skip to main content

easy wrapper for downloading google drive files using only shareable link

Project description

GdDownloader

Package to download files from google drive given shared link

Build Status PyPI version Coverage Status

Installation

    pip install gddownloader

Development

    git clone git@github.com:deven96/drive_downloader.git

Documentation

Github Pages

Running the tests

    cd drive_downloader/gddownloader/
    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

    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. If you have made a fork with substantial modifications that you feel may be useful, then please open a new issue on GitHub with a link and short description.

License (MIT)

This project is opened under the MIT 2.0 License which allows very broad use for both academic and commercial purposes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for GdDownloader, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size GdDownloader-0.0.3.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page