wkentaro / gdown

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

not able to download some docx or doc files #254

Closed saireddy12 closed 1 year ago

saireddy12 commented 1 year ago

Provide environment information

Python 3.10.10 gdown 4.6.4

What OS are you using?

macOs 12.6.3

Describe the Bug

i am trying to download a doc file https://docs.google.com/document/d/17r06adjf3VBTJ57FQ4gw_T6JSVKWA_0I_1QPzAikSds/edit?usp=sharing

i used gdown.download() with url option and with id , but its not working using id option is working for some doc files , but it's particularly not working for some files like the above one with id option for the above file , i am getting this:

Access denied with the following error:
    Cannot retrieve the public link of the file. You may need to change
    the permission to 'Anyone with the link', or have had many accesses. 
You may still be able to access the file from the browser:
     https://drive.google.com/uc?id=17r06adjf3VBTJ57FQ4gw_T6JSVKWA_0I_1QPzAikSds 

if i use the url option , i am getting this:

Downloading... From: https://docs.google.com/document/d/17r06adjf3VBTJ57FQ4gw_T6JSVKWA_0I_1QPzAikSds/edit?usp=sharing To: /content/edit?usp=sharing

its saving html code to above sharing file and if i pass a file name as output , its storing only html code

i tried all the options(restart,use_cookies= False , fuzzy=True) as suggested in the other issues , but its not working

i tried to see what is the reason using the code in this repo , for res = sess.get(url, stream=True, verify=verify) i see resp.text as Internal Server Error and We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.

please let me know how to fix it

Thanks..

Expected Behavior

No response

To Reproduce

id = '17r06adjf3VBTJ57FQ4gw_T6JSVKWA_0I_1QPzAikSds' gdown.download( id = id ,fuzzy = True , output='/content/')

wkentaro commented 1 year ago

Closed via https://github.com/wkentaro/gdown/releases/tag/v4.7.1