Configure OneDrive file for automation with wget on Linux

Right click file and choose embed

Click Generate

Copy Embed URL to text editor

Change “embed” to download

Use wget command with no certificate

wget --no-check-certificate "https://onedrive.live.com/download?cid=E7B1244EB32C92BE&resid=E7B1244EB32C92BE%214342&authkey=AM2GkZym39m6oB4" 

Rename file and delete garbage file name (change command to reflect name of your file download)

cp download\?cid\=E7B1244EB32C92BE\&resid\=E7B1244EB32C92BE\!4342\&authkey\=AM2GkZym39m6oB4 testfile.txt
rm download\?cid\=E7B1244EB32C92BE\&resid\=E7B1244EB32C92BE\!4342\&authkey\=AM2GkZym39m6oB4 
0 Points


Leave a Reply

Your email address will not be published. Required fields are marked *