Download onedrive file in linux environment

Take Google search as an example, press F12 on the page of the onedrive file to be downloaded to open the developer tools page. Then click the download button of the file you want to download. At this time, a new name will appear in the column of the name of the developer tools page. Right-click it and select Copy in cURL (bash) format. Then, paste the copied content into the Linux command line, and a link in the form of https://… will appear after execution. At this point, copy the link and use wget [-O] [filename] "copied link" to download the file you want to download in onedrive.

PS:

  1. There are some methods on the Internet that directly execute the copied cURL (bash) link in Linux to download the corresponding file, but I have tried this and failed to download. The downloaded content is only similar to the source code of the onedrive web page. After trying it myself, I found the above method, so I recorded it.
  2. Whether this method is effective for downloading files from other websites remains to be tested.

Guess you like

Origin blog.csdn.net/qq_42194665/article/details/129759936