使用命令行中的read debrid!
rdcli的Python项目详细描述
Use Read-Debrid from your command line !
rdcli是一个允许您从命令中使用真正的debrid的工具 行。它是用Python 2.7编写的,因为python是预先安装的 在当今大多数发行版上,限制软件数量 附属国。
安装
使用pip(首选方法)
要在计算机上安装最新版本的rdcli,请打开 终端并输入以下行:
sudo pip install rdcli
要更新rdcli,请运行:
sudo pip install rdcli -U
替代方法
如果您的计算机上没有/不想安装pip,您可以 使用以下命令手动安装rdcli(克隆repo 启动setup.py)
git clone https://github.com/MrMitch/realdebrid-CLI.git
cd realdebrid-CLI
python setup.py install
用法
在命令行中
mitch@raspberrypi ~ $ rdcli [OPTIONS] LINK
OPTIONS可以是:
- ::
-v Version. Show the installed version. -h Help. Display this help. -i Init. Force rdcli to ask for your login and password. Useful if you made a typo or if you changed your login information since you first used rdcli. -l List. Write a list of the successfully unrestricted links on STDOUT, without downloading. -t and -q options have no effect if -l is used. -o Output directory. Download files into a specific directory. -O Output file. Specify a name for the downloaded file instead of using the original file’s name. -O has no effect if several files will be downloaded. -p Password. Provide a password for protected downloads. -q Quiet mode. No output will be generated. -t Test mode. Perform all operations EXCEPT file downloading.
LINK可以是要下载的文件的url (即http://host.com/myFile.zip)或包含一个 或多个URL。
示例:
mitch@raspberrypi ~ $ rdcli http://host.com/myFile.zip mitch@raspberrypi ~ $ rdcli -o Documents/ http://host.com/myFile.zip mitch@raspberrypi ~ $ rdcli urls.txt mitch@raspberrypi ~ $ rdcli -t links-to-test.txt mitch@raspberrypi ~ $ rdcli -l links.txt > unrestricted-links.txt
用于开发目的
请参阅RDWorker文件。它定义了4个类:
- RDError:要为所有与异常相关的对象继承基本异常 真正的清创
- UnrestrictionError:在 链接不受限制
- LoginError:登录出错时引发异常
- RDWorker:为
- 提供方法的工作类
- 登录到真正的Debrid,建立一个cookie并将其保存到 过期了
- 不限制任何支持的链接
许可证
这个软件是在麻省理工学院的许可下发布的。一份 许可证可以在LICENSE.txt文件中找到。