惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
V
Vulnerabilities – Threatpost
Google Online Security Blog
Google Online Security Blog
Hugging Face - Blog
Hugging Face - Blog
L
LINUX DO - 热门话题
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
D
Docker
C
Cyber Attacks, Cyber Crime and Cyber Security
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
T
Tenable Blog
P
Privacy International News Feed
Google DeepMind News
Google DeepMind News
小众软件
小众软件
Cisco Talos Blog
Cisco Talos Blog
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
Arctic Wolf
C
Cybersecurity and Infrastructure Security Agency CISA
C
Cisco Blogs
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
The Hacker News
The Hacker News
Project Zero
Project Zero
AWS News Blog
AWS News Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threatpost
V
Visual Studio Blog
The GitHub Blog
The GitHub Blog
The Cloudflare Blog
Last Week in AI
Last Week in AI
Jina AI
Jina AI
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
MongoDB | Blog
MongoDB | Blog
U
Unit 42
Scott Helme
Scott Helme
A
About on SuperTechFans
WordPress大学
WordPress大学
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
G
GRAHAM CLULEY
Latest news
Latest news
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
Schneier on Security

Rat's Blog - BT下载

live-torrent:一个支持磁力链和种子的在线搜索云播Web客户端 - Rat's Blog yunBT:一个基于ThinkCMS的多用户BT离线下载程序,支持在线播放 - Rat's Blog webtorrent-cli:一个BT种子命令行下载工具,可边下边播放 - Rat's Blog Speedpan:百度网盘满速下载工具,无需登录,也可直接下载BT种子 - Rat's Blog Linux VPS使用torrent-cli命令行获取电影等资源的BT磁力 - Rat's Blog Linux下安装Vuze (Azureus)客户端教程,可离线BT下载 - Rat's Blog 使用Aria2下载BT磁力的时候,速度慢或者没速度的解决方法 - Rat's Blog 使用Docker快速安装Aria2+AriaNg+h5ai,可离线BT下载和在线播放 - Rat's Blog Linux一键安装Aria2+Yaaw+FileManager实现BT磁力下载,并在线查看/观看 - Rat's Blog
Torrench:一个命令行BT种子搜索工具,可直接下载资源 - Rat's Blog
博主: Rat's · 2018-06-17 · via Rat's Blog - BT下载

说明:前几天博主分享过一个命令行搜索BT磁力的教程,查看:使用torrent-cli命令行获取电影BT磁力,不过好像功能比较单一,只有搜索功能,今天再分享个命令行BT种子搜索工具Torrench,该工具不仅可以搜索BT种子,还可以将种子传输到transmissiondelugeqBittorrent客户端进行下载,还支持多个站点搜索,比较强大。

安装

Github地址:https://github.com/kryptxy/torrench
系统要求:WindowsLinuxMacOs,这里就说下Linux VPS安装,建议使用CentOS系统。

1、安装Python3
一般大多数Ubuntu自带Python3,而CentosDebian就需要我们安装了。

#查看是否有Python3
python3 -V

#安装Python3
#CentOS系统
wget https://www.moerats.com/usr/shell/Python3/CentOS_Python3.6.sh && sh CentOS_Python3.6.sh
#Debian系统
wget https://www.moerats.com/usr/shell/Python3/Debian_Python3.6.sh && sh Debian_Python3.6.sh

然后再输入python3 -V看是否安装成功。

2、安装Torrench
官方说了pip和源码安装两种方法,博主感觉pip安装好像容易出问题,所以这里只说源码安装。

#CentOS系统
yum install git -y
#Ubuntu和Debian系统
apt-get install git -y

#下载源码并安装
git clone https://github.com/kryptxy/torrench.git
cd torrench
pip3 install -r requirements.txt
python3 setup.py install

安装wcwidth使其支持中日韩文:

pip3 install wcwidth

配置

如果想要使用更多功能就需要配置文件。只是想简单的使用搜索功能,那这步可以跳过。

1、配置多站点搜索

#下载config.ini并配置
cd /root/torrench
wget -O config.ini https://pastebin.com/raw/reymRHSL
sed -i 's/enable = 0/enable = 1/g' '/root/torrench/config.ini'
#复制配置文件
cp /root/torrench/config.ini /root/.config/torrench
#更新配置文件
torrench -U

2、添加到客户端下载
本配置可以将你搜索的BT种子直接添加到客户端进行下载,编辑torrench.ini文件

nano /root/.config/torrench/torrench.ini

修改如下信息:

#CLIENT为BT客户端类型,支持transmission-qt、deluge、qBittorrent、rtorrent、transmission-remote、transmission-gtk,这里博主建议使用rtorrent客户端,当然你会用其它的也可以自己修改
CLIENT = rtorrent
#下面参数为服务器和端口,默认localhost:9091,客户端填了rtorrent后,以下参数不用管
SERVER = 
PORT =

接下来需要在服务器上安装rtorrent

#CentOS系统
yum install rtorrent -y  

#Debian/Ubuntu系统
apt-get update -y
apt-get install rtorrent -y 

使用

1、基本命令

torrench 参数 搜索名称

参数介绍:

#由于部分站点关闭,跨站点不能用,只说下简单参数
可选参数:
    -h, --help            显示帮助并退出
    -v, --version         显示版本并退出
    -U, --update-config   更新config.ini文件
    -p, --page-limit      搜索页数

可选BT站点参数:需要config.ini(默认禁用)    
    -t, --thepiratebay
    -k, --kickasstorrent
    -x, --x1337
    -r, --rarbg
    -n, --nyaa
    -l, --limetorrents
    -i, --idope
    -b, --xbit

2、示例命令

#在idope站点搜索逃学威龙,且默认搜索第一页,如果运行命令出错或者无搜索结果,请换个站点搜索
torrench -i "逃学威龙"

#如果搜索多页,比如搜索2页的资源
torrench -i "逃学威龙" -p 2

搜索演示:

[root@rats ~]# torrench -i "逃学威龙"

[Idope]

Fetching from page: 1
[in 0.90 sec]

+--------------------------------------------------------------------------------------------------+---------+----------+---------+----------+
| NAME                                                                                             | INDEX   | SIZE     |   SEEDS | AGE      |
+==================================================================================================+=========+==========+=========+==========+
| [逃学威龙2].Fight.Back.to.School.II.1992.DVDRip.X264                                             | --1--   | 1.8 GB   |     112 | 9 months |
+--------------------------------------------------------------------------------------------------+---------+----------+---------+----------+
| [2015.04.19]逃学威龙2[1992年中国香港喜剧(BD)][国粤双语]                                          | --2--   | 4.9 GB   |      25 | 1 years  |
+--------------------------------------------------------------------------------------------------+---------+----------+---------+----------+
| 逃学威龙I II III合集.D9终极收藏.1991-1993                                                        | --3--   | 5.0 GB   |      22 | 1 years  |
+--------------------------------------------------------------------------------------------------+---------+----------+---------+----------+
| [2009.10.01]逃学威龙II[1992年中国香港喜剧动作][国语]                                             | --4--   | 570.8 MB |      16 | 5 months |
+--------------------------------------------------------------------------------------------------+---------+----------+---------+----------+
| 逃学威龙1 粤语版[周星驰 吴孟达]_超清.kux                                                         | --5--   | 885.5 MB |      11 | 1 years  |
+--------------------------------------------------------------------------------------------------+---------+----------+---------+----------+
| 逃学威龙1-3.Fight.Back.to.School.1991-1993.BD720P.X264.AAC.Cantonese&Mandarin.CHS.Mp4Ba          | --6--   | 6.8 GB   |       8 | 1 years  |
+--------------------------------------------------------------------------------------------------+---------+----------+---------+----------+
| 逃学威龙ⅠⅡⅢ合集.1991-1993.国粤双语.中文字幕                                                   | --7--   | 8.6 GB   |       6 | 1 years  |
+--------------------------------------------------------------------------------------------------+---------+----------+---------+----------+
| 逃学威龙3之龙过鸡年.国粤双语中字.Fight.Back.to.School.III.1993.BD720P.X264.AAC.2Audios.CHS-882FX | --8--   | 2.6 GB   |       5 | 4 months |
+--------------------------------------------------------------------------------------------------+---------+----------+---------+----------+
| 逃学威龙1-3【国语中文字幕】                                                                      | --9--   | 1.2 GB   |       4 | 7 months |
+--------------------------------------------------------------------------------------------------+---------+----------+---------+----------+
| 逃学威龙1-3【粤语中文字幕】                                                                      | --10--  | 1.2 GB   |       3 | 1 years  |
+--------------------------------------------------------------------------------------------------+---------+----------+---------+----------+

Total 10 torrents [1 pages]
Total time: 0.90 sec

Enter torrent's INDEX value

(q = quit)
(r = return)
index > 1  #输入数字进行选择

Selected index [1] - [逃学威龙2].Fight.Back.to.School.II.1992.DVDRip.X264

[1] Print links (magnetic, upstream)
[2] Load torrent to client
---
[r] Return
[q] Quit

Option > 2  #1是将磁力和链接地址打印到SSH客户端,2是直接将种子添加到客户端下载

(rtorrent)
Success (PID: 13817)

#使用Ctrl+C退出,下载的文件在/root文件夹

这里使用方法就简单的说这些,更多的使用请查看Github项目地址


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/652/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。