k0staa / download-gdrive-file-action Goto Github PK
View Code? Open in Web Editor NEWGitHub action which aim is to simply and securely download file from Google Drive
License: MIT License
GitHub action which aim is to simply and securely download file from Google Drive
License: MIT License
This Github Action almost works for me!
I am trying to download a Google Sheet as a CSV. The error I run into is as follows:
Traceback (most recent call last):
File "/scripts/download_file.py", line 54, in <module>
download_file()
File "/scripts/download_file.py", line 15, in download_file
_download_file(file_id, file_name)
File "/scripts/download_file.py", line 46, in _download_file
status, done = downloader.next_chunk()
File "/usr/local/lib/python3.9/site-packages/googleapiclient/_helpers.py", line 131, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/googleapiclient/http.py", line 779, in next_chunk
raise HttpError(resp, content, uri=self._uri)
googleapiclient.errors.HttpError: <HttpError 403 when requesting https://www.googleapis.com/drive/v3/files/1Vmvhnhio7oFAPObnTz7wMvOTSzHNKPRPYxspXYI87D0?alt=media returned "Only files with binary content can be downloaded. Use Export with Docs Editors files.". Details: "[***'domain': 'global', 'reason': 'fileNotDownloadable', 'message': 'Only files with binary content can be downloaded. Use Export with Docs Editors files.', 'locationType': 'parameter', 'location': 'alt'***]">
It looks like the action only downloads binary files? Need to support something like "Export".
Hi,
it would be great if this action could support caching via actions/cache. The cache key could be the last modified date of the file for example, and if it has not change then it could be fetched from the cache instead of from Google Drive.
I am using this action to download a 7.3 gb file, i was thinking maybe it would be faster when downloading from the Github cache.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.