[Users] wget from google drive
Korobkin, Oleg
korobkin at lanl.gov
Thu Aug 10 17:43:38 CDT 2017
Hi,
There was a question during the Einstein Toolkit workshop about problems with downloading files from Google Drive with wget. If the file is shared via public link, it is not very hard, i.e. you need to specify the object ID:
wget -O <file> https://drive.google.com/uc?id=<FILEID>&export=download
where FILEID is a long string which shows up in the shared link. E.g.,
wget -O slides.pdf https://drive.google.com/uc?id=0Bxd8DtQy1EODaHRQd19Wd1M3WUU&export=download
also works with curl:
curl -o slides.pdf -L https://drive.google.com/uc?id=0Bxd8DtQy1EODaHRQd19Wd1M3WUU&export=download
This doesn't really work with privately shared files.
Hope this helps,
Cheers,
- Oleg Korobkin
More information about the Users
mailing list