GoogleDrive.jl

Automate Google-Drive download in Julia
Author JuliaIO
Popularity
24 Stars
Updated Last
8 Months Ago
Started In
January 2020

GoogleDrive

Download files from Google Drive.

https://github.com/JuliaIO/GoogleDrive.jl

action status pkgeval status codecov license docs-stable docs-dev

Introduction

GoogleDrive.jl provides support for downloading files from Google Drive and Google Sheets.

Installation

Install the package using the julia package manager:

Open the REPL, press ] to enter package mode, and then:

pkg> add GoogleDrive

Details

To download data into an IO stream from a special URL of the form url = "https://docs.google.com/uc?export=download&id=1GqmszfSB_LHGQEQpSjoiPyDROZ5a8Ls4", use the following code:

using Downloads: download
io = IOBuffer()
download(url, io)
str = String(take!(io)) # (this line for text data only)

To download data from a typical Google Drive URL of the form url = "https://drive.google.com/file/d/1GqmszfSB_LHGQEQpSjoiPyDROZ5a8Ls4", use the following code that converts the URL internally for convenience:

using GoogleDrive: google_download
io = IOBuffer()
google_download(url, io)
str = String(take!(io)) # (this line for text data only)

Contributing and Reporting Bugs

Contributions, in the form of bug-reports, pull requests, additional documentation are encouraged. They can be made to the Github repository.

All contributions and communications should abide by the Julia Community Standards.