wkentaro / gdown

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

Cannot use gdown command when building Dockerfile #162

Open anhquan075 opened 2 years ago

anhquan075 commented 2 years ago

Hello, I got an issue when I build a docker image and use gdown command to download my component into the image. But I always got the errors like the image below. Using the latest version with a direct link and still got this error. So I try to downgrade to 4.3.0 version but got the same one.

Notes: I turned on the 'Anyone with the link' for the file already. image

htluandc2 commented 1 year ago

I can download all public google drive on my computer (mac-os) by gdown, but it isn't run on server (ubuntu-18-04). It also "Cannot retrieve the public link of the file...." Hope it useful.

htluandc2 commented 1 year ago

@wkentaro This is my response text when I used gdown on server (aws). I type print(res.text) on download.py. I still can download full link on my local computer :

Screenshot 2022-12-08 at 12 09 09
htluandc2 commented 1 year ago

I fixed by change speed of dowloader to less 2MB/s

try:
  link_file = gdown.download(link, 'gg/', quiet=False, speed=2000*1024)
except  Exception as e:
  link_file = None
  print(e)