油猴脚本:将OneDrive/SharePoint下载推送到IDM/Aria2,支持批量下载

油猴脚本:将OneDrive/SharePoint下载推送到IDM/Aria2,支持批量下载-清风博客

安装:

如何使用

1.IDM 下载

选择你想下载的文件,点击”IDM 下载“。此时会下载一个 download.ef2 文件,在 IDM 里面导入之后就可以下载了。

油猴脚本:将OneDrive/SharePoint下载推送到IDM/Aria2,支持批量下载-清风博客
油猴脚本:将OneDrive/SharePoint下载推送到IDM/Aria2,支持批量下载-清风博客

2.Aria2下载

复制cookie到Aria2Ng,然后推送至Aria2即可

油猴脚本:将OneDrive/SharePoint下载推送到IDM/Aria2,支持批量下载-清风博客

注意事项

① 千万不要用脚本生成的cookie,要复制F12中完整的cookie!

油猴脚本:将OneDrive/SharePoint下载推送到IDM/Aria2,支持批量下载-清风博客

区别:

脚本生成的cookie:

Cookie: FedAuth=77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48U1A+VjExLDBoLmZ8bWVtYmVyc2hpcHwxMDAzMjAwMGJiZjZjMTQ3QGxpdmUuY29tLDAjLmZ8bWVtYmVyc2hpcHxyb290QGNlby5jby5heCwxMzI2NTUxODgyMDAwMDAwMDAsMTMyMzI5Mzk4MDYwMDAwMDAwLDEzMjc3NzM4NDY2NDQxODIxMywxMTEuMjUwLjEwLjkzLDMsMjg1NDgxODgtNWE0Yi00NGUzLTkwMzQtN2Y4YzI1YjcxZjY0LCwyYzE1Y2IxNi1xxxxxxxxxxktODhjZS02ZTQ3ODBmMmMwNGUsZmU3Y2YzOWYtMjAyMS1jMDAwLTQxYWItMjA0MzBlNTZkZTJjLDkxZTlmMzlmLTAwZjgtYzAwMC03NGJiLTU2NjQ5ODY1YzY0NiwsMCwxMzI3NzM5Mjg2NjQ0MTgyMTMsMTMyNzc1NjU2NjY0NDE4MjEzLCwsZXlKNGJYTmZZMk1pT2lKYlhDSkRVREZjSWwwaUxDSjRiWE5mYzNOdElqb2lNU0lzSW5CeVpXWmxjbkpsWkY5MWMyVnlibUZ0WlNJNklsSlBUMVJBWTJWdkxtTnZMbUY0SW4wPSwyNjUwNDY3NzQzOTk5OTk5OTk5LDEzMjc3MTkyNjEyMDAwMDAwMCxlNGUwY2VhMi1mY2IzLTQ4YzQtODgyYi1kMzRmZDg5OGE0NGUsLCwsLCwwLEVuxxxxxxxxxxM2Y2JrUzhJemU3V2dKVXBLUHEyRWVYY3g2YThjbVFIeENIaVZLNTdwR1FSTHMvTzRLWUFaWTNiMTQ5T2hzQ1ppYnBMazNxc3kwNmlxVnBFK05ZeGFITTE1enhjRDYzdjlWUGZlYXFpbXR2aGF4eU9JQXVQd2pZV0w5YUlNZEJVblQwUEQvakFrOEMrOEFzV1R3ZzBPUnl5WVVKdXpmOHBqdzIyenlwSzk3cUlwbGkzZ25qeHI3N1ZoZlFNRWdZSHh3ZGQwQ1VmUHpYVk9kRmlwTzlySGMrY3RWU25XTXUwakU4ejZxeEZTa1hNK0h0NHF6QWhNV21wTlNKdWw3VVg5c3pUWkV2ZHFQWVZGbkZ5djJOUFpKOHFtMVpsaExid3FLQzBiVWFXS2grUmluZXdlc0RxxxxxxxxxxGU0cHJreXJwMGFHYzZMS1hMZz09PC9TUD4=

F12里的cookie:

cookie: MicrosoftApplicationsTelemetryFirstLaunchTime=1632838681107; MicrosoftApplicationsTelemetryDeviceId=9a77832d-d509-8de9-9bca-3ae3ea49f95b; WordWacDataCenter=GAU2; WacDataCenter=GAU2; rtFa=AGkqOhVu6GEt3HSZDytlTToa3kTqKJGFPBovlkZ0IIgmMjg1NDgxODgtNUE0Qi00NEUzLTkwMzQtN0Y4QzI1QjcxRjY0IzEzMjc3Mjg2MjQ0OTAwMDY2NyM0OUQ2RjM5Ri01MDFFLUMwMDAtNzRCQi01RjMxMjMxMDZBRUIjUk9PVCU0MENFTy5DTy5BWBEfRdoXqjKYyOEyi87LECOgM/ygSF+m8YBwgGgfMt1NUkULNxGvDrmw6yAf65HHjlK7ncKIDPD47MiVpR3Y2lTz0IjdbB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KVXBLUHEyRWVYY3g2YThjbVFIeENIaVZLNTdwR1FSTHMvTzRLWUFaWTNiMTQ5T2hzQ1ppYnBMazNxc3kwNmlxVnBFK05ZeGFITTE1enhjRDYzdjlWUGZlYXFpbXR2aGF4eU9JQXVQd2pZV0w5YUlNZEJVblQwUEQvakFrOEMrOEFzV1R3ZzBPUnl5WVVKdXpmOHBqdzIyenlwSzk3cUlwbGkzZ25qeHI3N1ZoZlFNRWdZSHh3ZGQwQ1VmUHpYVk9kRmlwTzlySGMrY3RWU25XTXUwakU4ejZxeEZTa1hNK0h0NHF6QWhNV21wTlNKdWw3VVg5c3pUWkV2ZHFQWVZGbkZ5djJOUFpKOHFtMVpsaExid3FLQzBiVWFXS2grUmluZXdlc0RxxxxxxxxxxGU0cHJreXJwMGFHYzZMS1hMZz09PC9TUD4=

很明显,脚本生成的cookie是不完整,这就导致了两种不同的结果。

油猴脚本:将OneDrive/SharePoint下载推送到IDM/Aria2,支持批量下载-清风博客

② 默认只支持OneDrive,在脚本的设置里添加一下匹配链接即可支持SharePoint

添加规则:https://*.sharepoint.com/sites/*

油猴脚本:将OneDrive/SharePoint下载推送到IDM/Aria2,支持批量下载-清风博客

③ Aria2 推送提示“无法发送 Aria 下载请求!”

在“脚本设置 – XHR 安全 – 用户域名白名单”添加 RPC 域名即可。

油猴脚本:将OneDrive/SharePoint下载推送到IDM/Aria2,支持批量下载-清风博客

最后

OneDrive的速度不是不快,而是本地的网络受限。用服务器下载,几十M/s的下载速度是小意思。

温馨提示:本文最后更新于2022-03-23 17:58:24,某些文章具有时效性,若有错误或已失效,请在下方留言或联系清风#
© 版权声明
THE END
文章不错?点个赞呗!
点赞48 分享
评论 抢沙发

请登录后发表评论