Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gdown is downloading a broken docx file, which was uploaded to Google Drive (it was working well ~8 months ago) #283

Open
DevVadim opened this issue Sep 22, 2023 · 0 comments
Labels
bug for issue

Comments

@DevVadim
Copy link

Provide environment information

~/Tests$ python --version
Python 3.10.8
~/Tests$ python -m pip list | grep gdown
gdown 4.7.1
~/Tests$ which python
/home/runner/Tests/venv/bin/python

What OS are you using?

Ubuntu 20.04.2 LTS (Focal Fossa)

Describe the Bug

I use Replit to run a script with downloading a docx file that was uploaded to Google Drive. File is changing every week. For about three months, everything had worked well. But then files have started downloading such that word can't open them. I even tried to download folder with the file, but it still turns out to be broken. The file downloaded manually opens normally.

Expected Behavior

File downloaded by Gdown opens normally

To Reproduce

  1. Upload not empty docx file to Google Drive, get file's id
  2. On Repl add required packages and create a script, which contains smth like
    import gdown
    id2 = "ID from step 1"
    output = 'tt.docx'
    gdown.download(id=id2, output=output, quiet=False, format = 'docx')
  3. Run your repl and try to open downloaded file via Word (or any open source analogue)

Example file top_secret_file.docx

@DevVadim DevVadim added the bug for issue label Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug for issue
Projects
None yet
Development

No branches or pull requests

1 participant