Ian
Ian

Reputation: 351

How to download Google Drive Folder using wget?

I need to download whole folder from google drive using wget. How can I do that?

Upvotes: 7

Views: 13337

Answers (2)

MarioZ
MarioZ

Reputation: 318

You can download zipped files like this:

Suppose this is the shared link from your google drive: https://drive.google.com/file/d/345efwerfer23rffedser/view?usp=sharing

copy this part of the shared_link: 345efwerfer23rffedser

to bellow command

!wget --no-check-certificate 'https://drive.google.com/uc?export=download&id=345efwerfer23rffedser' -O 'files.zip'

Upvotes: -1

Janio Sarmento
Janio Sarmento

Reputation: 131

"You can't" more and less...

pip install gdown
gdown --no-check-certificate --folder <folder URL>

I've been using it for a while in macOS and Ubuntu.

Upvotes: 10

Related Questions