Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gdown is giving Permission error for particular file,although it is opening up fine manually

I am not able to download file using gdown package.It is giving permission error. But when i am opening it manually.It is giving no such error and opening up fine. Here is the code i am using and link

import gdown
url='https://drive.google.com/uc?id=0B1lRQVLFjBRNR3Jqam1menVtZnc'
output='letter.pdf'
gdown.download(url, output, quiet=False)

Error is Permission denied: https://drive.google.com/uc?id=0B1lRQVLFjBRNR3Jqam1menVtZnc Maybe you need to change permission over 'Anyone with the link'?

like image 290
jatin rajani Avatar asked Sep 02 '25 05:09

jatin rajani


1 Answers

In my case, I ran the following command and try using gdown, and problem was solved:

pip install --upgrade --no-cache-dir gdown

If you are using google-colab, try:

!pip install --upgrade --no-cache-dir gdown

then: !gdown --id [id of your file]

like image 152
s.abbaasi Avatar answered Sep 04 '25 18:09

s.abbaasi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!