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

Installation

    pip install gddownloader

Development

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

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()

Project details


Download files

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

Source Distribution

GdDownloader-0.0.1.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

GdDownloader-0.0.1-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page