wkentaro / gdown

Google Drive Public File Downloader when Curl/Wget Fails
MIT License
4.33k stars 350 forks source link

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

Open DevVadim opened 1 year ago

DevVadim commented 1 year ago

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