介绍
软件为webtorrent的命令行版本:webtorrent-cli
- 实测下载速度很快,比aria2强好多
- 支持云播放
- 纯命令行即可下载
- BT下载注意版权问题,可能会被VPS封号
安装命令
软件需要nodejs环境,下面安装命令适用于ubuntu(ubuntu16已测试),其他系统请自行修改安装命令
1 2 3 4 5 |
# ubuntu16 nodejs+webtorrent apt-get update && apt-get install -y curl curl -sL https://deb.nodesource.com/setup_12.x | bash apt-get install -y nodejs git npm install webtorrent-cli -g --unsafe-perm |
使用
安装好后,命令行中运行 webtorrent --help 即可查看帮助
下面简单说一下用法,其他复杂功能请根据帮助内容自行折腾
下载功能:
直接下载磁力链接/给定info hash下载/下载网上种子/下载本地种子文件,如:
1 2 3 4 |
webtorrent 'magnet:?xt=urn:btih:a62d0889404a9d5b4bb50368ba4861f56921af0a' webtorrent a62d0889404a9d5b4bb50368ba4861f56921af0a webtorrent http://path.to/snis.torrent webtorrent /path/to/torrent |
云播功能:
在上述下载命令后添加 --dlna 参数,就能看到如下的界面
1 2 3 |
Downloading: snis-xxx Streaming to: DLNA Server running at: http://yourip:8000/0 ...... |
打开上述上面的链接 http://yourip:8000/0 ,即可在网页云播了
注意,有时默认生成的是你的内网IP,请自行换成VPS的公网IP访问即可。
有语病ʕ•ٹ•ʔ,介绍那里加粗的文字,导致VPS被封机