wget in linux from onedrive share

 This is possible, but a struggle if you don't know how to form the URI correctly and how to pass that correctly to wget. This is how it's done:

1) Create a normal shared link, shared with everyone, without password.

2) Form the wget as follows: wget --no-check-certificate -O myimage.jpg "<YOUR-LINK-HERE>&download=1"

The above will download the data from the OneDrive link and save it to your computer or server as "myimage.jpg".

Kommentarer