centos7 system download Baidu cloud disk in the file

Ali today need to be uploaded to a cloud server mirroring, about 7G, too, but Baidu network disk link, so if you can use the server attempts to download files directly Baidu network disk.
First, Baidu can use wget to download command is as follows: wget -c --referer = -O file name of the application address the "real address"
try

 wget -c --referer=https://pan.baidu.com/s/1fz2y -O XXXXXX.iso "https://pcs.baidu.com/rest/2.0/pcs/file?method=download&app_id=265486&path=%2FXXXXXX.iso"
ERROR 400: Bad Request.

Continue to Baidu, we found a BaiduPCS-Go tool is available for download on github
install BaiduPCS-Go tools, Download: https://github.com/iikira/BaiduPCS-Go/releases
I use CentOS 7, download BaiduPCS-Go-v3 .6-linux-amd64.zip like version
Here Insert Picture Description
after downloading unzip it to a server, switch to unzip the folder, ./BaiduPCS-Gostart, go to tools his cli
Here Insert Picture Description
Here Insert Picture Description
Figure log on, use the help command to view help

BaiduPCS-Go:/ XXXXXX$ help
----
  BaiduPCS-Go - 百度网盘客户端 for linux/amd64

USAGE:
  BaiduPCS-Go [global options] command [command options] [arguments...]

VERSION:
  v3.6

DESCRIPTION:
  BaiduPCS-Go 使用Go语言编写的百度网盘命令行客户端, 为操作百度网盘, 提供实用功能.
  具体功能, 参见 COMMANDS 列表

  特色:
    网盘内列出文件和目录, 支持通配符匹配路径;
    下载网盘内文件, 支持网盘内目录 (文件夹) 下载, 支持多个文件或目录下载, 支持断点续传和高并发高速下载.

  ---------------------------------------------------
  前往 https://github.com/iikira/BaiduPCS-Go 以获取更多帮助信息!
  前往 https://github.com/iikira/BaiduPCS-Go/releases 以获取程序更新信息!
  ---------------------------------------------------

  交流反馈:
    提交Issue: https://github.com/iikira/BaiduPCS-Go/issues
    邮箱: [email protected]

AUTHOR:
  iikira/BaiduPCS-Go: https://github.com/iikira/BaiduPCS-Go

COMMANDS:
    tool           工具箱
    help, h, ?, ?  Shows a list of commands or help for one command
  其他:
    bg           管理后台任务
    clear, cls   清空控制台
    env          显示程序环境变量
    run          执行系统命令
    sumfile, sf  获取本地文件的秒传信息
    update       检测程序更新
  百度帐号:
    login    登录百度账号
    loglist  列出帐号列表
    logout   退出百度帐号
    su       切换百度帐号
    who      获取当前帐号
  百度网盘:
    cd                      切换工作目录
    cp                      拷贝文件/目录
    createsuperfile, csf    手动分片上传—合并分片文件
    download, d             下载文件/目录
    export, ep              导出文件/目录
    fixmd5                  修复文件MD5
    locate, lt              获取下载直链
    ls, l, ll               列出目录
    match                   测试通配符
    meta                    获取文件/目录的元信息
    mkdir                   创建目录
    mv                      移动/重命名文件/目录
    offlinedl, clouddl, od  离线下载
    pwd                     输出工作目录
    quota                   获取网盘配额
    rapidupload, ru         手动秒传文件
    recycle                 回收站
    rm                      删除文件/目录
    search, s               搜索文件
    share                   分享文件/目录
    tree, t                 列出目录的树形图
    upload, u               上传文件/目录
  配置:
    config  显示和修改程序配置项

GLOBAL OPTIONS:
  --verbose      启用调试 [$BAIDUPCS_GO_VERBOSE]
  --help, -h     show help
  --version, -v  print the version

COPYRIGHT:
  (c) 2016-2019 iikira.

Use cdswitch to the target directory, use the ddownload.
Unfortunately, the download was successful

BaiduPCS-Go:2.0.1 灭亡天师$ d XXXXXXXXX.iso 

[0] 提示: 当前下载最大并发量为: 128, 下载缓存为: 65536
[1] 加入下载队列: /2.0.1/XXXXXXXXX.iso

[1] ----
  类型              文件                              
  文件路径          /2.0.1/XXXXXXXXX.iso    
  文件名称          XXXXXXXXX.iso           
  文件大小          514363392, 490.535156MB           
  md5 (可能不正确)  cc9a46XXXXXXXXXX  
  app_id            250528                            
  fs_id             198775389353267                   
  创建日期          2017-03-14 14:29:07               
  修改日期          2017-03-15 14:53:40               

[1] 准备下载: /2.0.1/XXXXXXXXX.iso
[1] 将会下载到路径: /root/Downloads/801881306_XXXXXXX/2.0.1/XXXXXXXXX.iso


[1] 下载文件错误, 下载单个文件: 遇到错误, 远端服务器返回错误, 代码: 31326, 消息: user is not authorized, hitcode:104, 重试 1/3

[1] ----
  类型              文件                              
  文件路径          /2.0.1/XXXXXXXX.iso    
  文件名称          XXXXXXXXX.iso           
  文件大小          514363392, 490.535156MB           
  md5 (可能不正确)  cc9a46c4XXXXXXX 
  app_id            250528                            
  fs_id             198775389353267                   
  创建日期          2017-03-14 14:29:07               
  修改日期          2017-03-15 14:53:40               

[1] 准备下载: /2.0.1/XXXXXXXXX.iso
[1] 将会下载到路径: /root/Downloads/801881306_XXXXX/2.0.1/XXXXXXXX.iso


[1] 下载文件错误, 下载单个文件: 遇到错误, 远端服务器返回错误, 代码: 31326, 消息: user is not authorized, hitcode:104, 重试 2/3

[1] ----
  类型              文件                              
  文件路径          /2.0.1/XXXXXX.iso    
  文件名称          XXXXXXX.iso           
  文件大小          514363392, 490.535156MB           
  md5 (可能不正确)  cc9a46cXXXXXd8  
  app_id            250528                            
  fs_id             198775389353267                   
  创建日期          2017-03-14 14:29:07               
  修改日期          2017-03-15 14:53:40               

[1] 准备下载: /2.0.1/XXXXXXX.iso
[1] 将会下载到路径: /root/Downloads/801881306_XXXX/2.0.1/XXXXXX.iso


[1] 下载文件错误, 下载单个文件: 遇到错误, 远端服务器返回错误, 代码: 31326, 消息: user is not authorized, hitcode:104, 重试 3/3

[1] ----
  类型              文件                              
  文件路径          /2.0.1/XXXX.iso    
  文件名称          XXXXX.iso           
  文件大小          514363392, 490.535156MB           
  md5 (可能不正确)  cc9a46c4aXXX8  
  app_id            250528                            
  fs_id             198775389353267                   
  创建日期          2017-03-14 14:29:07               
  修改日期          2017-03-15 14:53:40               

[1] 准备下载: /2.0.1/XXXX.iso
[1] 将会下载到路径: /root/Downloads/801881306XXX/2.0.1/XXX.iso


[1] 下载文件错误, 下载单个文件: 遇到错误, 远端服务器返回错误, 代码: 31326, 消息: user is not authorized, hitcode:104

任务结束, 时间: 20.744s, 数据总量: 0B
以下文件下载失败: 
  0  /2.0.1/XXXXXX.iso  

There on Github feedback on this issue: https://github.com/iikira/BaiduPCS-Go/issues/802

Downloads are probably too many to monitor the degree of your mother, but now in addition there is no good way. Use CRT slowly pass it. . .

Released nine original articles · won praise 3 · Views 594

Guess you like

Origin blog.csdn.net/qq_36464516/article/details/102835153