前提百度网盘处于登录状态(公司网络可再虚拟机上开启v2rayN全局代理使用谷歌隐私模式登录百度网盘网页版,找到需要的文件后F12在浏览器控制台做如下操作获取真实下载链接)
(function(){
var _id = 309847;
var isHome = $('a[title="我的卡包"]').html();
var _temp = isHome ? "" : $('span[title]:first').attr('title').slice(4);
var _name = 'eclipse-jee-luna-SR2-win32-x86_64.rar';
var _path = encodeURIComponent(_temp + '/' + _name);
var _link = 'https://pcs.baidu.com/rest/2.0/pcs/file?method=download&app_id='+_id+'&path='+_path;
console.log('下载地址为:');
console.log('%c%s','color:#00ff00;background-color:#000000;',_link);
})();
->IDM飞起来
https://pcs.baidu.com/rest/2.0/pcs/file?method=download&app_id=309847&path=%2F%E8%BD%AF%E4%BB%B6-%E4%B8%8D%E8%8A%B1%E9%92%B1%2Fwindows-%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7%2Feclipse-jee-luna-SR2-win32-x86_64.rar
wget -c --referer=https://pan.baidu.com/s/1Xtgn_KZkeKTLqgrcg6e5ZQ -O eclipse-jee-luna-SR2-win32-x86_64.rar "https://pcs.baidu.com/rest/2.0/pcs/file?method=download&app_id=309847&path=%2F%E8%BD%AF%E4%BB%B6-%E4%B8%8D%E8%8A%B1%E9%92%B1%2Fwindows-%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7%2Feclipse-jee-luna-SR2-win32-x86_64.rar"
此处-c 为断点续传,--referer为百度云分享地址,-O为指定输出文件,后面接浏览器下载文件的下载地址。