wkentaro / gdown

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

module 'gdown' has no attribute 'download_folder' on Google Colab #129

Closed Raychanan closed 2 years ago

Raychanan commented 2 years ago

Hi, many thanks for developing this package!

I'm downloading the gdrive folder with the sample code you offered. However, it pops up module 'gdown' has no attribute 'download_folder' I'd like to ask whether there is any other way to download the folder? Thanks!

! pip install gdown

import gdown

url = 'https://drive.google.com/drive/folders/1ivUsJd88C8rl4UpqpxIcdI5YLmRD0Mfj'
gdown.download_folder(url, quiet=True, no_cookies=True)

Google Colab notebook: https://colab.research.google.com/drive/1l_wRmd92DlnwXrrRXWECX5plofpJ2p_P?usp=sharing

wkentaro commented 2 years ago

Probably you need to run !pip install gdown -U --no-cache-dir

Raychanan commented 2 years ago

It worked! Many thanks! For those having the same issue, this chunk would work.

# This chunk works.
!pip uninstall --yes gdown # After running this line, restart Colab runtime.

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

import gdown

url = 'https://drive.google.com/drive/folders/1ivUsJd88C8rl4UpqpxIcdI5YLmRD0Mfj'

gdown.download_folder(url)
wkentaro commented 2 years ago

👍