This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13587|Reply: 0

[linux] Linux download Baidu Cloud file tutorial below

[Copy link]
Posted on 12/2/2016 1:24:16 PM | | | |


I uploaded a "test text .txt" to Baidu Cloud Network Disk,Then,If you want to download,You definitely need to bring some parameters and cookies

It cannot be downloaded directly under linux with the wget command.



We look at the network request, find the download address, copy right click to copy to curl

As follows:

curl 'https://qdcu01.baidupcs.com/file/0f65f0b30e979e1db7607a6eef34de33?bkt=p3-14000f65f0b30e979e1db7607a6eef34de333702589e00000000000e&fid=3893484529-250528-15325213281329&time=1480655788&sign=FDTAXGERLBH-DCb740ccc5511e5e8fedcff06b081203-J%2FLz%2BmCqhe2BBMK791pu%2BBBr05I%3D&to=qdhb&fm=Yan,B,U,ny&sta_dx=14&sta_cs=&sta_ft=txt&sta_ct=0&sta_mt=0&fm2=Yangquan,B,U,ny&newver=1&newfm=1&secfm=1&flow_ver=3&pkey=14000f65f0b30e979e1db7607a6eef34de333702589e00000000000e&sl=78774350&expires=8h&rt=pr&r=508432832&mlogid=7805616773579732714&vuk=3893484529&vbdid=393096943&fin=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC.txt&fn=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC.txt&slt=pm&uta=0&rtype=1&iv=0&isw=0&dp-logid=7805616773579732714&dp-callid=0.1.1&hps=1&csl=109&csign=zawS07Iu2CPhlmsYdPxXuvbKeGU%3D' -H ' Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: zh-CN,zh; q=0.8' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml; q=0.9,image/webp,*/*; q=0.8' -H 'Referer: https://pan.baidu.com/disk/home' -H 'Connection: keep-alive' --compressed


However, this is not enough, we need to add a parameter. As follows:

curl 'https://qdcu01.baidupcs.com/file/0f65f0b30e979e1db7607a6eef34de33?bkt=p3-14000f65f0b30e979e1db7607a6eef34de333702589e00000000000e&fid=3893484529-250528-15325213281329&time=1480655788&sign=FDTAXGERLBH-DCb740ccc5511e5e8fedcff06b081203-J%2FLz%2BmCqhe2BBMK791pu%2BBBr05I%3D&to=qdhb&fm=Yan,B,U,ny&sta_dx=14&sta_cs=&sta_ft=txt&sta_ct=0&sta_mt=0&fm2=Yangquan,B,U,ny&newver=1&newfm=1&secfm=1&flow_ver=3&pkey=14000f65f0b30e979e1db7607a6eef34de333702589e00000000000e&sl=78774350&expires=8h&rt=pr&r=508432832&mlogid=7805616773579732714&vuk=3893484529&vbdid=393096943&fin=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC.txt&fn=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC.txt&slt=pm&uta=0&rtype=1&iv=0&isw=0&dp-logid=7805616773579732714&dp-callid=0.1.1&hps=1&csl=109&csign=zawS07Iu2CPhlmsYdPxXuvbKeGU%3D' -H ' Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: zh-CN,zh; q=0.8' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml; q=0.9,image/webp,*/*; q=0.8' -H 'Referer: https://pan.baidu.com/disk/home' -H 'Connection: keep-alive' --compressed -o 1.txt



-o/--output to write the output to the file






Previous:.net/c# List collection copy clone
Next:iPhone 6s Free Replacement Battery Lookup Tool
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com