Skip to content

Package to download files from google drive given shared link

Notifications You must be signed in to change notification settings

bisohns/drive_downloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GdDownloader

Package to download files from google drive given shared link

CircleCI Coverage Status

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

About

Package to download files from google drive given shared link

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%