Python磁力获取器命令行工具 torrent-cli
2024-08-24 10:11:38
作为一个搞代码的,找资源这种事肯定不能像普通人一样打开百度盲目查找,你需要写个爬虫工具来帮你完成这件事情啦!
兼容环境
Windows/Linux/MacOs
安装
pip 安装
$ pip install torrent-cli
源码安装
$ git clone https://github.com/chenjiandongx/torrent-cli.git $ cd torrent-cli $ pip install -r requirements.txt $ python setup.py install
如何使用
$ torrent-cli usage: torrent-cli [-h] [-n NUM] [-s SORT_BY] [-o OUTPUT] [-p] [-v] [KEYWORD [KEYWORD ...]] Magnets-Getter CLI Tools. positional arguments: KEYWORD magnet keyword. optional arguments: -h, --help show this help message and exit -n NUM, --num NUM magnet number.(default 10) -s SORT_BY, --sort-by SORT_BY 0: Sort by date,1: Sort by size. 2: Sort by hot- rank.(default 0) -o OUTPUT, --output OUTPUT output file path, supports csv and json format. -p, --pretty-oneline show magnets info with one line. -v, --version version information.
示例
根据单关键字搜索
$ torrent-cli 战狼2 Crawling data for you.....
单行显示并按大小排序(也可以指定排序顺序为 2,按热度排序)
$ torrent-cli 战狼2 -p -s 1 Crawling data for you..... magnet:?xt=urn:btih:CC3854CACBB5434E03EFF39C693B20223E0AA39D 56.8 GB 2018-05-14 magnet:?xt=urn:btih:D6A5598C03C3123038DB6CAA04AE36D90BB569C6 35.0 GB 2018-02-22 magnet:?xt=urn:btih:5B411E880CB585B5B596DBB25BB7F0927FD44F54 13.2 GB 2018-01-01 magnet:?xt=urn:btih:B8E5C85B5B368060AB245AC5E434981B0D5543CA 12.4 GB 2018-02-23 magnet:?xt=urn:btih:4640565A71BB840D6A082B7F8D387A5FF604941A 9.2 GB 2017-12-12 magnet:?xt=urn:btih:B6401277BA77620727F7D6FE1345501555F7CA28 7.8 GB 2017-11-16 magnet:?xt=urn:btih:2154B29E07DF4D21B67488C55667B1AB22CD63F4 7.8 GB 2017-12-17 magnet:?xt=urn:btih:C1F01F089892ECF2AF168C190754B2921902D9E1 7.5 GB 2017-11-16 magnet:?xt=urn:btih:DE42BC281CF39F0F489B64F06C2440466D545C83 5.4 GB 2017-12-13
或者可以保存为 csv 或者 json 文件(建议保存为 csv 文件,json 数据会被序列化,转为 utf 编码)
$ torrent-cli 战狼2 -o movie.csv 开源项目来源:https://gitee.com/zerolemon/torrent_tool
磁力搜索网站汇总每日更新
https://www.cnblogs.com/cilisousuo/p/12099547.html
最新文章
- ZooKeeper 笔记(5) ACL(Access Control List)访问控制列表
- Android虚拟机中的sqlite数据库文件
- hdu 2337 Escape from Enemy Territory
- stl迭代器原理
- HTML5_智能表单
- mysql可视化管理工具
- eclipse中删除多余的工作空间记录
- web开发注意的一些事
- OCP读书笔记(27) - 题库(ExamG)
- 基于React Native的移动平台研发实践分享
- 什么是PostBack(译)
- 【工作分解法】IT人,你的工作“轻松”么?
- MVC Bundle生成的css路径问题
- nginx如何调用php
- Eclipse 安装 AmaterasUML 插件
- Java线程机制学习
- Linux命令--1
- bootstrap datepicker Uncaught TypeError: Cannot call method 'split' of undefined问题
- 八、Kafka总结
- linux用户管理中两个重要的“父子”配置文件