GithubHelp home page GithubHelp logo

k0staa / download-gdrive-file-action Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 5.01 MB

GitHub action which aim is to simply and securely download file from Google Drive

License: MIT License

Dockerfile 9.58% Python 90.42%

download-gdrive-file-action's People

Contributors

k0staa avatar mitrydoug avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mitrydoug

download-gdrive-file-action's Issues

Dowloaded file must be binary content, need Export

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".

cache support?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.