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.
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
Post a Comment