美文网首页
配置Aria2+BaiduExporter下载百度云

配置Aria2+BaiduExporter下载百度云

作者: netx | 来源:发表于2017-10-15 15:49 被阅读0次

    Mac篇

    下载安装Aria2

    配置环境变量

    vim ~/.bash_profile
    PATH=$PATH:/usr/local/aria2/bin
    source ~/.bash_profile
    

    添加Aria2配置文件

    mkdir ~/.aria2
    vim ~/.aria2/aria2.conf
    
    # Basic Options
    dir=/Users/XXX/Downloads
    input-file=/Applications/aria2c/session.dat
    log=/Applications/aria2c/aria2.log
    max-concurrent-downloads=15
    max-connection-per-server=15
    check-integrity=true
    continue=true
    
    # BitTorrent/Metalink Options
    bt-enable-lpd=true
    bt-max-open-files=16
    bt-max-peers=8
    dht-file-path=/opt/var/aria2/dht.dat
    dht-file-path6=/opt/var/aria2/dht6.dat
    dht-listen-port=6801
    #enable-dht6=true
    listen-port=6801
    max-overall-upload-limit=0K
    seed-ratio=0
    
    # RPC Options
    enable-rpc=true
    rpc-allow-origin-all=true
    rpc-listen-all=true
    rpc-listen-port=6800
    #rpc-secret=123456
    #rpc-secure=true
    
    # Advanced Options
    daemon=true
    disable-ipv6=true
    #enable-mmap=true
    file-allocation=none
    log-level=warn
    max-overall-download-limit=0K
    save-session=/Applications/aria2c/session.dat
    always-resume=true
    split=10
    min-split-size=10M
    
    #百度盘
    user-agent=netdisk;5.2.6;PC;PC-Windows;6.2.9200;WindowsBaiduYunGuanJia
    referer=http://pan.baidu.com/disk/home
    

    下载 Aria2 应用文件
    解压缩连同文件夹放入Applications目录

    输入aria2c运行

    安装BaiduExporter扩展

    在下载页面上选择导出下载-Aria2 RPC

    Web管理界面修改主机和端口为localhost:6800
    webui-aria2
    YAAW

    Win篇

    下载安装Aria2

    配置aria2.conf

    dir=C:\Users\XXX\Downloads\
    log=C:\aria2\Aria2.log
    input-file=C:\aria2\aria2.session
    save-session=C:\aria2\aria2.session
    save-session-interval=60
    log-level=error
    
    # see --split option
    max-concurrent-downloads=5
    continue=true
    max-overall-download-limit=0
    max-overall-upload-limit=50K
    max-upload-limit=20
    
    # Http/FTP options
    connect-timeout=120
    lowest-speed-limit=10K
    max-connection-per-server=10
    max-file-not-found=2
    min-split-size=1M
    split=5
    check-certificate=false
    http-no-cache=true
    
    # FTP Specific Options
    
    # BT/PT Setting
    bt-enable-lpd=true
    #bt-max-peers=55
    follow-torrent=true
    enable-dht6=false
    bt-seed-unverified
    rpc-save-upload-metadata=true
    bt-hash-check-seed
    bt-remove-unselected-file
    bt-request-peer-speed-limit=100K
    seed-ratio=0.0
    
    # Metalink Specific Options
    
    # RPC Options
    enable-rpc=true
    pause=false
    rpc-allow-origin-all=true
    rpc-listen-all=true
    rpc-save-upload-metadata=true
    rpc-secure=false
    
    # Advanced Options
    daemon=true
    disable-ipv6=true
    enable-mmap=true
    file-allocation=falloc 
    max-download-result=120
    #no-file-allocation-limit=32M
    force-sequential=true
    parameterized-uri=true
    

    新建vbs脚本运行
    CreateObject("WScript.Shell").Run "C:\aria2\aria2c.exe --conf-path=aria2.conf",0

    安装BaiduExporter扩展

    下载Chrome组策略模板,复制以下文件目录到C:\Windows\PolicyDefinitions

    ./Windows/admx/chrome.admx;
    ./Windows/admx/google.admx;
    ./Windows/admx/en-US/;
    ./Windows/admx/zh-CN.
    

    运行gpedit.msc修改组策略配置
    计算机配置 > 管理模板 > Google > Google Chrome > 扩展程序
    启用配置扩展程序安装白名单,在要从黑名单中排除的扩展程序ID中添加BaiduExporter扩展程序ID

    在下载页面上选择导出下载-Aria2 RPC

    Web管理界面修改主机和端口为localhost:6800
    webui-aria2
    YAAW

    参考:
    百度网盘无需客户端下载文件方法总结
    Aria2 配置及使用详细教程
    Aria2配置教程
    Guide on Packaging and Import Baidu Exporter to Chrome

    相关文章

      网友评论

          本文标题:配置Aria2+BaiduExporter下载百度云

          本文链接:https://www.haomeiwen.com/subject/jplcuxtx.html