Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download a file from box using wget?

Tags:

wget

box

I've created a direct link to a file in box:

enter image description here

The previous link is to the browser web interface, so I've then shared with a direct link:

enter image description here

However, if I download the file with a wget I receive garbage.

How can I download the file with wget?

like image 975
Chris Snow Avatar asked Sep 15 '17 12:09

Chris Snow


1 Answers

I was able to download the file by making the link public, then replacing /s/ in the url with /shared/static

So my final command was:

curl -L  https://MYUNI.box.com/shared/static/EXAMPLEtzwosac6pz --output myfile.zip

This can probably be modified for wget.

like image 156
robbwh Avatar answered Sep 21 '22 17:09

robbwh