第一步:找到你要下载的百度云链接
我这里是:https://pan.baidu.com/s/1eRHNp6M
第二步:打开控制台(F12)
输入:
$.ajax({
type: "POST",
url: "/api/sharedownload?sign="+yunData.SIGN+"×tamp="+yunData.TIMESTAMP,
data: "encrypt=0&product=share&uk="+yunData.SHARE_UK+"&primaryid="+yunData.SHARE_ID+"&fid_list=%5B"+yunData.FS_ID+"%5D",
dataType: "json",
success: function(d){
window.location.href = d.list[0].dlink;
}
});
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
第三步:回车本地下载
第四步:去浏览器看下载详情获取实际的下载URL
第五步:在Linux终端使用wget下载:
wget -c –referer=https://pan.baidu.com/s/1eRHNp6M -O CVideo “https://d11.baidupcs.com/file/74a5cda09bca04abaff9601678604cce?bkt=p3-00003a4bd4c4338eaadba8b3fe9daad7d7e1&xcode=7bf9a455f2588d55b5c696cfa86294c4e52979fa4d8841ad0b2977702d3e6764&fid=4132786383-250528-256646952531983&time=1493185852&sign=FDTAXGERLBHS-DCb740ccc5511e5e8fedcff06b081203-grBvDrPaRQnGqgKj5N5n0cj1QDE%3D&to=d11&size=1999113444&sta_dx=1999113444&sta_cs=206&sta_ft=rar&sta_ct=5&sta_mt=0&fm2=MH,Yangquan,Netizen-anywhere,,jiangxi,ct&newver=1&newfm=1&secfm=1&flow_ver=3&pkey=00003a4bd4c4338eaadba8b3fe9daad7d7e1&sl=79953999&expires=8h&rt=sh&r=308129364&mlogid=2680556801571097870&vuk=4132786383&vbdid=1353292204&fin=%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%85%A5%E9%97%A8%E5%AD%A6%E4%B9%A0C%E8%AF%AD%E8%A8%80.rar&fn=%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%85%A5%E9%97%A8%E5%AD%A6%E4%B9%A0C%E8%AF%AD%E8%A8%80.rar&rtype=1&iv=0&dp-logid=2680556801571097870&dp-callid=0.1.1&hps=1&csl=283&csign=NiqHfJpTCWlAFiFdv%2FuRN6pWmIs%3D&by=themis”
注:此处-c 为断点续传,–referer为百度云分享地址,-O为指定输出文件 CVideo 是随意设置的文件名,后面接浏览器下载文件的下载地址。