wkentaro / gdown

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

Output file document does not match expectations #326

Open realxnesia opened 7 months ago

realxnesia commented 7 months ago

Provide environment information

What OS are you using?

macOS Sonoma 14.1.2 (23B92)

Describe the Bug

The output file I expected, namely docx, was not converted correctly. instead the output is like this: CleanShot 2024-02-19 at 15 29 54@2x Its still not downloading the file , its just storing the html & js and the file name is also not correct.

I know this issue has been fixed here, but when I try it by creating it via pyhton script or trying it via terminal, the results are immediately the same.

Expected Behavior

  1. I want to execute gdown from terminal directly (gdown bla bla bla ...)
  2. File docx with the followeing format: <name>.<format> ex: release-note.docx or release-note.txt

To Reproduce

Command_1:

gdown "https://docs.google.com/document/d/14H2_vSH5ACnjBxp2H58zyr2sKWBcqJL0cLY8AW4hoiw/edit\#heading\=h.ehk6vuubwdju" --fuzzy --format docx Result : CleanShot 2024-02-19 at 15 38 52@2x CleanShot 2024-02-19 at 15 39 19@2x

Command_2:

gdown "https://docs.google.com/document/d/14H2_vSH5ACnjBxp2H58zyr2sKWBcqJL0cLY8AW4hoiw/edit\#heading\=h.ehk6vuubwdju" --fuzzy --format docx -O release-note Result: CleanShot 2024-02-19 at 15 40 50@2x CleanShot 2024-02-19 at 15 41 42@2x

Command_3:

gdown "https://drive.google.com/uc\?id\=14H2_vSH5ACnjBxp2H58zyr2sKWBcqJL0cLY8AW4hoiw" --fuzzy --format docx Result: The result is the same as Command_1

You can try this url :

https://docs.google.com/document/d/1fuigw1xi_WLonTk8e8UOCfVEF7ek9zoZR25gBs3InsI/edit?usp=sharing or https://docs.google.com/document/d/1fuigw1xi_WLonTk8e8UOCfVEF7ek9zoZR25gBs3InsI/edit#heading=h.kch8f9vxsrf5

Thank you in advance,