在LInux的命令行中搜索种子
时间:2020-03-21 11:46:58 来源:igfitidea点击:
We-get是一个跨平台工具,因此它将可以在GNU/Linux,MS Windows和Mac OS X上运行。
在此教程中,让我们了解如何安装和使用We-get工具从命令行中的torrent中搜索种子。
在LInux的命令行中搜索种子
安装
我们需要Python 3.5或者更高版本才能工作。
Ubuntu 16.04 LTS和更高版本附带预装了Python 3和Python 2.
因此,如果使用Ubuntu 16.04或者更高版本,则无需安装Python。
我们需要先安装PIP,Python软件包管理器,然后才能安装We-get。
为此,请运行:
$sudo apt-get install python3-pip
在基于RPM的系统(例如RHEL,CentOS)上,我们需要安装Python 3.x版本,如下所示。
$yum install https://centos7.iuscommunity.org/ius-release.rpm
$yum install python35u
安装Python 3.5后,请对PIP运行以下命令:
$yum install python35u-pip
另外,请确保已在系统上安装了GIT。
大多数Linux发行版的默认存储库中都有Git,因此我们可以使用默认的软件包管理器进行安装,如下所示。
在基于DEB的系统上:
$sudo apt-get install git
在基于RPM的系统上:
$sudo yum install git
在Arch Linux及其衍生版本上:
$sudo pacman -S git
一旦安装了PIP和GIT,请运行以下命令以安装“ we-get”。
$sudo pip install git+https://github.com/rachmadaniHaryono/we-get
用法
让我们看一些实际的例子。
免责声明:在某些地区/国家/地区搜索/下载torrent文件是非法的。
请使用此信息,后果自负。
我们(theitroad或者作者)对任何非法使用torrents概不负责。
要搜索种子,请运行:
$we-get --search "Arch Linux" --target the_pirate_bay
输出示例:
# Fetching data from 'the_pirate_bay' ... the_pirate_bay Arch.Linux.Environment.Setup.How-to [2/0] the_pirate_bay Raspberry.Pi.Arch.Linux.ARM [1/0] the_pirate_bay Arch.Linux.2015-07-01.ISO [1/1] the_pirate_bay Arch.Linux.Netinstall.Image.Dual.Architecture [0/0] the_pirate_bay Arch.Linux.Live.ISO [0/1] the_pirate_bay arch.linux [0/1] the_pirate_bay Arch.Linux.Netinstall.Image.32-bit [0/0] we-get >
我们可以查看上述搜索字词(即Arch Linux)的可用种子列表。
为此,只需在we-get提示符下键入list。
另外,要查看特定洪流的详细信息,请按如下所示输入show <torrent_name>。
we-get > show Arch.Linux.Environment.Setup.How-to Arch.Linux.Environment.Setup.How-to { "leeches": "0", "link": "magnet:?xt=urn:btih:3b2a9431310ad4de48b55bf3b219d43820a021b1&dn=Arch+Linux+Environment+Setup+How-to&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Fzer0day.ch%3A1337&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969", "seeds": "2", "target": "the_pirate_bay" }
要从We-get Shell退出,请键入exit。
这是We-get支持的选项的完整列表。
$we-get -h
Usage: we-get [options]... Options: -s --search [text] Search for a torrent. -l --list List top torrents from modules. -t --target [target] Select module to use or 'all'. -L --links Output results as links. -J --json Output results in JSON format. -G --get-list List targets (supported web-sites). -f --filter [str] Match text or regular expression in the torrent name. -n --results [n] Number of results to retrieve. -S --sort-type [type] Sort torrents by name/seeds (default: seeds). Video options: -q --quality [q] Try to match quality for the torrent (720p,1080p, ...). -g --genre [g] Try to select video genre for the torrent (action, comedy, etc..). General options: -h --help Help message. -v --version Show version. Copyright (c) 2015-2016 Levi Sabah <Hyman@theitroad>. Full documentation at: <http://github.com/levisabah/we-get>