How to download files and folders from Onedrive using wget?
How to use wget to download files from Onedrive? (and batch files and entire folders, if possible)
wget download batch-jobs
add a comment |
How to use wget to download files from Onedrive? (and batch files and entire folders, if possible)
wget download batch-jobs
1
Please take a look at superuser.com/questions/833199/… "In Office 365 how do I get a direct download link for an Excel document stored in One Drive for Business?" to see if that answers your question.
– steve
Aug 17 '15 at 16:08
But is necessary subscripted account in Office365.
– João José
Aug 17 '15 at 16:48
Use the OneDrive client that someone has kindly written for Linux ? github.com/xybu/onedrive-d-old
– steve
Aug 17 '15 at 16:53
Try to download the file to your browser, while the download is running, right click and 'copy download link'. If you are lucky you can wget that link.
– Baazigar
Aug 17 '15 at 18:33
I try Onedrive-d, but couldn't do 'get' work. Really by copying link to file and put in 'wget', it works, thank you.
– João José
Aug 17 '15 at 20:12
add a comment |
How to use wget to download files from Onedrive? (and batch files and entire folders, if possible)
wget download batch-jobs
How to use wget to download files from Onedrive? (and batch files and entire folders, if possible)
wget download batch-jobs
wget download batch-jobs
asked Aug 17 '15 at 16:05
João José
138227
138227
1
Please take a look at superuser.com/questions/833199/… "In Office 365 how do I get a direct download link for an Excel document stored in One Drive for Business?" to see if that answers your question.
– steve
Aug 17 '15 at 16:08
But is necessary subscripted account in Office365.
– João José
Aug 17 '15 at 16:48
Use the OneDrive client that someone has kindly written for Linux ? github.com/xybu/onedrive-d-old
– steve
Aug 17 '15 at 16:53
Try to download the file to your browser, while the download is running, right click and 'copy download link'. If you are lucky you can wget that link.
– Baazigar
Aug 17 '15 at 18:33
I try Onedrive-d, but couldn't do 'get' work. Really by copying link to file and put in 'wget', it works, thank you.
– João José
Aug 17 '15 at 20:12
add a comment |
1
Please take a look at superuser.com/questions/833199/… "In Office 365 how do I get a direct download link for an Excel document stored in One Drive for Business?" to see if that answers your question.
– steve
Aug 17 '15 at 16:08
But is necessary subscripted account in Office365.
– João José
Aug 17 '15 at 16:48
Use the OneDrive client that someone has kindly written for Linux ? github.com/xybu/onedrive-d-old
– steve
Aug 17 '15 at 16:53
Try to download the file to your browser, while the download is running, right click and 'copy download link'. If you are lucky you can wget that link.
– Baazigar
Aug 17 '15 at 18:33
I try Onedrive-d, but couldn't do 'get' work. Really by copying link to file and put in 'wget', it works, thank you.
– João José
Aug 17 '15 at 20:12
1
1
Please take a look at superuser.com/questions/833199/… "In Office 365 how do I get a direct download link for an Excel document stored in One Drive for Business?" to see if that answers your question.
– steve
Aug 17 '15 at 16:08
Please take a look at superuser.com/questions/833199/… "In Office 365 how do I get a direct download link for an Excel document stored in One Drive for Business?" to see if that answers your question.
– steve
Aug 17 '15 at 16:08
But is necessary subscripted account in Office365.
– João José
Aug 17 '15 at 16:48
But is necessary subscripted account in Office365.
– João José
Aug 17 '15 at 16:48
Use the OneDrive client that someone has kindly written for Linux ? github.com/xybu/onedrive-d-old
– steve
Aug 17 '15 at 16:53
Use the OneDrive client that someone has kindly written for Linux ? github.com/xybu/onedrive-d-old
– steve
Aug 17 '15 at 16:53
Try to download the file to your browser, while the download is running, right click and 'copy download link'. If you are lucky you can wget that link.
– Baazigar
Aug 17 '15 at 18:33
Try to download the file to your browser, while the download is running, right click and 'copy download link'. If you are lucky you can wget that link.
– Baazigar
Aug 17 '15 at 18:33
I try Onedrive-d, but couldn't do 'get' work. Really by copying link to file and put in 'wget', it works, thank you.
– João José
Aug 17 '15 at 20:12
I try Onedrive-d, but couldn't do 'get' work. Really by copying link to file and put in 'wget', it works, thank you.
– João José
Aug 17 '15 at 20:12
add a comment |
4 Answers
4
active
oldest
votes
There is one way that works for me (based on this tutorial: https://www.marstranslation.com/blog/how-to-make-direct-link-of-onedrive-files)
Right-click on the file you are interested in download (from web interface), and choose Embed.
Press "Generate HTML code to embed this file".
Copy the part contained in the
""
of src is your link. This will look like .Replace
embed
withdownload
. This will look like https://onedrive.live.com/download?cid=6EBB03E38A53ED3E&resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA.
Feed it to
wget
using following syntax:
wget --no-check-certificate "https://onedrive.live.com/download?cid=6EBB03E38A53ED3E&resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA"
Enjoy.
While this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Stephen Rauch
Feb 13 '17 at 20:49
Ok, now everything is in one place)
– Fedorov7890
Feb 13 '17 at 21:58
One must not forget to put the link in""
inwget
. I did and it didn't work.
– Dushyant Bangal
Mar 8 '17 at 9:58
@Fedorov7890 It doesn't work. I tried to download a folder.
– Nikhil
Sep 5 '18 at 9:13
It works for files only
– Nikhil
Sep 5 '18 at 9:31
add a comment |
Using Chrome (but Firefox will probably also work).
- Open DevTools
- Click the Download button.
- Download but cancel immediately
- Open the 'Network' tab in DevTools. Search for 'Zip?authKey=' in
DevTools and open it (click). This is a POST request. - Click 'View source' to the right of 'Form data' at the bottom.
- Construct the command as follows:
wget --post-data='<raw form data>' '<Download URL>'
Or:
wget --post-data='resIds=xxx&canary=yyy&authkey=zzz' 'https://cid--foobar.users.storage.live.com/downloadfiles/V1/Zip?authKey=zzz'
This even works on a different host (with a different IP address).
A simpler variation on this (using Firefox) is: Tools->Web Developer->Network. Find 'Zip?authKey=', right click on it and 'Copy as cURL'. Copy-paste into the command line and add '-o /path/to/some/file'. Of course this uses cURL instead of wget, but for this purpose they function identically
– happyskeptic
Dec 25 '17 at 4:41
add a comment |
This python SDK (with example) for OneDrive project works (for personal, business, and corporate accounts):
https://github.com/OneDrive/onedrive-sdk-python
add a comment |
Also, we can use CurlWget
I already tried on OneDrive and Google Drive
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f223734%2fhow-to-download-files-and-folders-from-onedrive-using-wget%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
There is one way that works for me (based on this tutorial: https://www.marstranslation.com/blog/how-to-make-direct-link-of-onedrive-files)
Right-click on the file you are interested in download (from web interface), and choose Embed.
Press "Generate HTML code to embed this file".
Copy the part contained in the
""
of src is your link. This will look like .Replace
embed
withdownload
. This will look like https://onedrive.live.com/download?cid=6EBB03E38A53ED3E&resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA.
Feed it to
wget
using following syntax:
wget --no-check-certificate "https://onedrive.live.com/download?cid=6EBB03E38A53ED3E&resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA"
Enjoy.
While this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Stephen Rauch
Feb 13 '17 at 20:49
Ok, now everything is in one place)
– Fedorov7890
Feb 13 '17 at 21:58
One must not forget to put the link in""
inwget
. I did and it didn't work.
– Dushyant Bangal
Mar 8 '17 at 9:58
@Fedorov7890 It doesn't work. I tried to download a folder.
– Nikhil
Sep 5 '18 at 9:13
It works for files only
– Nikhil
Sep 5 '18 at 9:31
add a comment |
There is one way that works for me (based on this tutorial: https://www.marstranslation.com/blog/how-to-make-direct-link-of-onedrive-files)
Right-click on the file you are interested in download (from web interface), and choose Embed.
Press "Generate HTML code to embed this file".
Copy the part contained in the
""
of src is your link. This will look like .Replace
embed
withdownload
. This will look like https://onedrive.live.com/download?cid=6EBB03E38A53ED3E&resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA.
Feed it to
wget
using following syntax:
wget --no-check-certificate "https://onedrive.live.com/download?cid=6EBB03E38A53ED3E&resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA"
Enjoy.
While this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Stephen Rauch
Feb 13 '17 at 20:49
Ok, now everything is in one place)
– Fedorov7890
Feb 13 '17 at 21:58
One must not forget to put the link in""
inwget
. I did and it didn't work.
– Dushyant Bangal
Mar 8 '17 at 9:58
@Fedorov7890 It doesn't work. I tried to download a folder.
– Nikhil
Sep 5 '18 at 9:13
It works for files only
– Nikhil
Sep 5 '18 at 9:31
add a comment |
There is one way that works for me (based on this tutorial: https://www.marstranslation.com/blog/how-to-make-direct-link-of-onedrive-files)
Right-click on the file you are interested in download (from web interface), and choose Embed.
Press "Generate HTML code to embed this file".
Copy the part contained in the
""
of src is your link. This will look like .Replace
embed
withdownload
. This will look like https://onedrive.live.com/download?cid=6EBB03E38A53ED3E&resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA.
Feed it to
wget
using following syntax:
wget --no-check-certificate "https://onedrive.live.com/download?cid=6EBB03E38A53ED3E&resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA"
Enjoy.
There is one way that works for me (based on this tutorial: https://www.marstranslation.com/blog/how-to-make-direct-link-of-onedrive-files)
Right-click on the file you are interested in download (from web interface), and choose Embed.
Press "Generate HTML code to embed this file".
Copy the part contained in the
""
of src is your link. This will look like .Replace
embed
withdownload
. This will look like https://onedrive.live.com/download?cid=6EBB03E38A53ED3E&resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA.
Feed it to
wget
using following syntax:
wget --no-check-certificate "https://onedrive.live.com/download?cid=6EBB03E38A53ED3E&resid=6EBB03E38A53ED3E%21116&authkey=AC4lDqtLG8LqfiA"
Enjoy.
edited Mar 8 '17 at 10:11
phk
3,98652153
3,98652153
answered Feb 13 '17 at 20:30
Fedorov7890
17637
17637
While this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Stephen Rauch
Feb 13 '17 at 20:49
Ok, now everything is in one place)
– Fedorov7890
Feb 13 '17 at 21:58
One must not forget to put the link in""
inwget
. I did and it didn't work.
– Dushyant Bangal
Mar 8 '17 at 9:58
@Fedorov7890 It doesn't work. I tried to download a folder.
– Nikhil
Sep 5 '18 at 9:13
It works for files only
– Nikhil
Sep 5 '18 at 9:31
add a comment |
While this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Stephen Rauch
Feb 13 '17 at 20:49
Ok, now everything is in one place)
– Fedorov7890
Feb 13 '17 at 21:58
One must not forget to put the link in""
inwget
. I did and it didn't work.
– Dushyant Bangal
Mar 8 '17 at 9:58
@Fedorov7890 It doesn't work. I tried to download a folder.
– Nikhil
Sep 5 '18 at 9:13
It works for files only
– Nikhil
Sep 5 '18 at 9:31
While this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Stephen Rauch
Feb 13 '17 at 20:49
While this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
– Stephen Rauch
Feb 13 '17 at 20:49
Ok, now everything is in one place)
– Fedorov7890
Feb 13 '17 at 21:58
Ok, now everything is in one place)
– Fedorov7890
Feb 13 '17 at 21:58
One must not forget to put the link in
""
in wget
. I did and it didn't work.– Dushyant Bangal
Mar 8 '17 at 9:58
One must not forget to put the link in
""
in wget
. I did and it didn't work.– Dushyant Bangal
Mar 8 '17 at 9:58
@Fedorov7890 It doesn't work. I tried to download a folder.
– Nikhil
Sep 5 '18 at 9:13
@Fedorov7890 It doesn't work. I tried to download a folder.
– Nikhil
Sep 5 '18 at 9:13
It works for files only
– Nikhil
Sep 5 '18 at 9:31
It works for files only
– Nikhil
Sep 5 '18 at 9:31
add a comment |
Using Chrome (but Firefox will probably also work).
- Open DevTools
- Click the Download button.
- Download but cancel immediately
- Open the 'Network' tab in DevTools. Search for 'Zip?authKey=' in
DevTools and open it (click). This is a POST request. - Click 'View source' to the right of 'Form data' at the bottom.
- Construct the command as follows:
wget --post-data='<raw form data>' '<Download URL>'
Or:
wget --post-data='resIds=xxx&canary=yyy&authkey=zzz' 'https://cid--foobar.users.storage.live.com/downloadfiles/V1/Zip?authKey=zzz'
This even works on a different host (with a different IP address).
A simpler variation on this (using Firefox) is: Tools->Web Developer->Network. Find 'Zip?authKey=', right click on it and 'Copy as cURL'. Copy-paste into the command line and add '-o /path/to/some/file'. Of course this uses cURL instead of wget, but for this purpose they function identically
– happyskeptic
Dec 25 '17 at 4:41
add a comment |
Using Chrome (but Firefox will probably also work).
- Open DevTools
- Click the Download button.
- Download but cancel immediately
- Open the 'Network' tab in DevTools. Search for 'Zip?authKey=' in
DevTools and open it (click). This is a POST request. - Click 'View source' to the right of 'Form data' at the bottom.
- Construct the command as follows:
wget --post-data='<raw form data>' '<Download URL>'
Or:
wget --post-data='resIds=xxx&canary=yyy&authkey=zzz' 'https://cid--foobar.users.storage.live.com/downloadfiles/V1/Zip?authKey=zzz'
This even works on a different host (with a different IP address).
A simpler variation on this (using Firefox) is: Tools->Web Developer->Network. Find 'Zip?authKey=', right click on it and 'Copy as cURL'. Copy-paste into the command line and add '-o /path/to/some/file'. Of course this uses cURL instead of wget, but for this purpose they function identically
– happyskeptic
Dec 25 '17 at 4:41
add a comment |
Using Chrome (but Firefox will probably also work).
- Open DevTools
- Click the Download button.
- Download but cancel immediately
- Open the 'Network' tab in DevTools. Search for 'Zip?authKey=' in
DevTools and open it (click). This is a POST request. - Click 'View source' to the right of 'Form data' at the bottom.
- Construct the command as follows:
wget --post-data='<raw form data>' '<Download URL>'
Or:
wget --post-data='resIds=xxx&canary=yyy&authkey=zzz' 'https://cid--foobar.users.storage.live.com/downloadfiles/V1/Zip?authKey=zzz'
This even works on a different host (with a different IP address).
Using Chrome (but Firefox will probably also work).
- Open DevTools
- Click the Download button.
- Download but cancel immediately
- Open the 'Network' tab in DevTools. Search for 'Zip?authKey=' in
DevTools and open it (click). This is a POST request. - Click 'View source' to the right of 'Form data' at the bottom.
- Construct the command as follows:
wget --post-data='<raw form data>' '<Download URL>'
Or:
wget --post-data='resIds=xxx&canary=yyy&authkey=zzz' 'https://cid--foobar.users.storage.live.com/downloadfiles/V1/Zip?authKey=zzz'
This even works on a different host (with a different IP address).
answered Jul 14 '17 at 18:02
ayke
1312
1312
A simpler variation on this (using Firefox) is: Tools->Web Developer->Network. Find 'Zip?authKey=', right click on it and 'Copy as cURL'. Copy-paste into the command line and add '-o /path/to/some/file'. Of course this uses cURL instead of wget, but for this purpose they function identically
– happyskeptic
Dec 25 '17 at 4:41
add a comment |
A simpler variation on this (using Firefox) is: Tools->Web Developer->Network. Find 'Zip?authKey=', right click on it and 'Copy as cURL'. Copy-paste into the command line and add '-o /path/to/some/file'. Of course this uses cURL instead of wget, but for this purpose they function identically
– happyskeptic
Dec 25 '17 at 4:41
A simpler variation on this (using Firefox) is: Tools->Web Developer->Network. Find 'Zip?authKey=', right click on it and 'Copy as cURL'. Copy-paste into the command line and add '-o /path/to/some/file'. Of course this uses cURL instead of wget, but for this purpose they function identically
– happyskeptic
Dec 25 '17 at 4:41
A simpler variation on this (using Firefox) is: Tools->Web Developer->Network. Find 'Zip?authKey=', right click on it and 'Copy as cURL'. Copy-paste into the command line and add '-o /path/to/some/file'. Of course this uses cURL instead of wget, but for this purpose they function identically
– happyskeptic
Dec 25 '17 at 4:41
add a comment |
This python SDK (with example) for OneDrive project works (for personal, business, and corporate accounts):
https://github.com/OneDrive/onedrive-sdk-python
add a comment |
This python SDK (with example) for OneDrive project works (for personal, business, and corporate accounts):
https://github.com/OneDrive/onedrive-sdk-python
add a comment |
This python SDK (with example) for OneDrive project works (for personal, business, and corporate accounts):
https://github.com/OneDrive/onedrive-sdk-python
This python SDK (with example) for OneDrive project works (for personal, business, and corporate accounts):
https://github.com/OneDrive/onedrive-sdk-python
answered Dec 4 '16 at 15:29
firebitsbr
1316
1316
add a comment |
add a comment |
Also, we can use CurlWget
I already tried on OneDrive and Google Drive
New contributor
add a comment |
Also, we can use CurlWget
I already tried on OneDrive and Google Drive
New contributor
add a comment |
Also, we can use CurlWget
I already tried on OneDrive and Google Drive
New contributor
Also, we can use CurlWget
I already tried on OneDrive and Google Drive
New contributor
New contributor
answered 8 hours ago
Pedro Diamel Marrero Fernandez
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f223734%2fhow-to-download-files-and-folders-from-onedrive-using-wget%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Please take a look at superuser.com/questions/833199/… "In Office 365 how do I get a direct download link for an Excel document stored in One Drive for Business?" to see if that answers your question.
– steve
Aug 17 '15 at 16:08
But is necessary subscripted account in Office365.
– João José
Aug 17 '15 at 16:48
Use the OneDrive client that someone has kindly written for Linux ? github.com/xybu/onedrive-d-old
– steve
Aug 17 '15 at 16:53
Try to download the file to your browser, while the download is running, right click and 'copy download link'. If you are lucky you can wget that link.
– Baazigar
Aug 17 '15 at 18:33
I try Onedrive-d, but couldn't do 'get' work. Really by copying link to file and put in 'wget', it works, thank you.
– João José
Aug 17 '15 at 20:12