Wednesday, May 23, 2018

wget from Google Drive and Dropbox: One line command to download in Linux

Google Drive 
Make sure the link is shared, and it will look something like this:

https://drive.google.com/open?id=FILEID&authuser=0

Then, copy that FILEID and use it like this

wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O FILENAME.EXT



DropBox
When you share a file in Dropbox, the link will look like
https://www.dropbox.com/s/xvuu7a8syeaur0n/FILENAME.EXT?dl=0

replace dl=0 to dl=1 then use the following command to download using wget from Dropbox

wget -O FILENAME.EXT "https://www.dropbox.com/s/xvuu7a8syeaur0n/FILENAME.EXT?dl=1"

No comments:

Post a Comment