How to download files from Google Drive?

In this post, I am going to save your time by showing how to download files from Google Drive

This method works to download files using wget.

Steps to follow are -

1. pip install gdown

2. Create link to your file with "Anyone with link for a file" - Use the share button
to create that link. Top right corner of the Google drive file page.





Use the copy link and paste that in the new window.You will see a link like below
You Want to see the id as shown below.
https://drive.google.com/file/d/1us4TH2kao6jJrwZruk4UwoKr


3. Copy the id of the file.

4. gdown https://drive.google.com/uc?id=file_id

example here will be -->  
    gdown  https://drive.google.com/uc?id=1us4TH2kao6jJrwZruk4UwoKr

Enjoy :)

Hope this post saved your valuable time. 

Comments

Popular posts from this blog

SOX - Sound eXchange - How to use SOX for audio processing tasks in research.

Sox of Silence - Original post - http://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/

How to get video or audio duration of a file using ffmpeg?