Download files from Google Drive.
https://github.com/JuliaIO/GoogleDrive.jl
GoogleDrive.jl provides support for downloading files from Google Drive and Google Sheets.
Install the package using the julia package manager:
Open the REPL, press ] to enter package mode, and then:
pkg> add GoogleDrive
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)
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.