{"id":19285967,"url":"https://github.com/chenjiandongx/torrent-cli","last_synced_at":"2025-04-12T15:44:17.586Z","repository":{"id":57476692,"uuid":"110984701","full_name":"chenjiandongx/torrent-cli","owner":"chenjiandongx","description":"🔨 磁力获取器命令行工具","archived":false,"fork":false,"pushed_at":"2018-07-18T08:49:59.000Z","size":37,"stargazers_count":645,"open_issues_count":5,"forks_count":138,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-04-03T15:12:43.250Z","etag":null,"topics":["magento","python","torrent"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chenjiandongx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-16T14:57:33.000Z","updated_at":"2025-03-30T08:08:37.000Z","dependencies_parsed_at":"2022-09-14T12:30:44.249Z","dependency_job_id":null,"html_url":"https://github.com/chenjiandongx/torrent-cli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Ftorrent-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Ftorrent-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Ftorrent-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Ftorrent-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenjiandongx","download_url":"https://codeload.github.com/chenjiandongx/torrent-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248591009,"owners_count":21129932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["magento","python","torrent"],"created_at":"2024-11-09T21:47:31.909Z","updated_at":"2025-04-12T15:44:17.567Z","avatar_url":"https://github.com/chenjiandongx.png","language":"Python","readme":"# 磁力获取器命令行工具\n\n[![PyPI version](https://badge.fury.io/py/torrent-cli.svg)](https://badge.fury.io/py/torrent-cli) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n作为一个搞代码的，找资源这种事肯定不能像普通人一样打开百度盲目查找，你需要写个爬虫工具来帮你完成这件事情啦！\n\n### 兼容环境\nWindows/Linux/MacOs\n\n\n### 安装\n#### pip 安装\n```\n$ pip install torrent-cli\n```\n\n#### 源码安装\n```\n $ git clone https://github.com/chenjiandongx/torrent-cli.git\n $ cd torrent-cli\n $ pip install -r requirements.txt\n $ python setup.py install\n ```\n\n\n### 如何使用\n```\n$ torrent-cli\nusage: torrent-cli [-h] [-n NUM] [-s SORT_BY] [-o OUTPUT] [-p] [-v]\n                   [KEYWORD [KEYWORD ...]]\n\nMagnets-Getter CLI Tools.\n\npositional arguments:\n  KEYWORD               magnet keyword.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -n NUM, --num NUM     magnet number.(default 10)\n  -s SORT_BY, --sort-by SORT_BY\n                        0: Sort by date，1: Sort by size. 2: Sort by hot-\n                        rank.(default 0)\n  -o OUTPUT, --output OUTPUT\n                        output file path, supports csv and json format.\n  -p, --pretty-oneline  show magnets info with one line.\n  -v, --version         version information.\n```\n\n\n#### 示例\n\n**根据单关键字搜索**\n```\n$ torrent-cli 战狼2\nCrawling data for you.....\n磁链: magnet:?xt=urn:btih:80B24033541A8DE529876488E68DCD707B074990\n名称: 战狼2.2017.tc720p.中英双字.制作@卡其，更多免费资源关注微信公众号 ：卡其影视控\n大小: 829.0 MB\n日期: 2018-05-15\n热度: 1\n\n磁链: magnet:?xt=urn:btih:CC3854CACBB5434E03EFF39C693B20223E0AA39D\n名称: [hao4k.com]战狼2.4k.wolf.warriors.ii.2017.hk.2160p.uhd.blu-ray.hevc.truehd.atmos.7.1\n大小: 56.8 GB\n日期: 2018-05-14\n热度: 25\n\n磁链: magnet:?xt=urn:btih:F0BAFA381B258540374F854688CFFC7A590596F0\n名称: 2017战狼2幕后全纪实hd720p中字.mp4\n大小: 148.3 MB\n日期: 2018-03-11\n热度: 5\n\n磁链: magnet:?xt=urn:btih:E7FC73D9E20697C6C440203F5884EF52F9E4BD28\n名称: 战狼2.wlf.wrrirs.2.2017.hd720p.x264.aac-国语中字-rarbt\n大小: 2.2 GB\n日期: 2018-03-11\n热度: 3\n\n磁链: magnet:?xt=urn:btih:B8E5C85B5B368060AB245AC5E434981B0D5543CA\n名称: 战狼2.字幕修复版.wolf.warriors.ii.2017.bd1080p.x264.dts-hd.ma.7.1.mandarin\u0026english.chs-eng.mp4bafans\n大小: 12.4 GB\n日期: 2018-02-23\n热度: 15\n\n磁链: magnet:?xt=urn:btih:D6A5598C03C3123038DB6CAA04AE36D90BB569C6\n名称: 战狼2.wolf.war[email protected]ourbits\n大小: 35.0 GB\n日期: 2018-02-22\n热度: 16\n\n磁链: magnet:?xt=urn:btih:5FE0D9709B9578DBD68BAAB949E00C502C703DE3\n名称: [战狼2wolf.warrior.2][bluray-720p.mkv][3.42gb][国英双语]\n大小: 3.4 GB\n日期: 2018-02-22\n热度: 25\n\n磁链: magnet:?xt=urn:btih:5DFBF035D2CFAB3E04373C92A6463358ED5DA4E7\n名称: 战狼2.超清国语中字.mp4\n大小: 1.8 GB\n日期: 2018-02-22\n热度: 3\n\n磁链: magnet:?xt=urn:btih:E478E2A78ECBD02C0AFC92D6E1552C09C834B43C\n名称: 战狼2.wolf.warriors.ⅱ.2017.1080p.web-dl.x264.aac.mp4\n大小: 2.8 GB\n日期: 2018-02-22\n热度: 54\n\n磁链: magnet:?xt=urn:btih:AD222466087EC7D65A961BB293CE476F936C69B5\n名称: 战狼2.2017.bd1280高清中英双字-www.iidvd.com.mp4\n大小: 1.1 GB\n日期: 2018-02-21\n热度: 29\n```\n\n**支持空格匹配多关键字**\n```\n$ torrent-cli 钢铁侠 3\nCrawling data for you.....\n磁链: magnet:?xt=urn:btih:D43351FC74020C3E41F21C4E2D09736795D88DEE\n名称: 钢铁侠3.iron.man.3.2013.bd1080p.x264.aac.mandarin\u0026english.chs-eng.mp4ba\n大小: 4.7 GB\n日期: 2018-05-15\n热度: 2\n\n磁链: magnet:?xt=urn:btih:C65EBBB542C4D419AD4258530B1E80EF9A2AE105\n名称: 钢铁侠3.mkv\n大小: 1.7 GB\n日期: 2018-03-09\n热度: 1\n\n磁链: magnet:?xt=urn:btih:8C00A1AEEFAFB69365784BD3CFA36C444585A4BF\n名称: 钢铁侠3.iron.man.3.2013.bd1080p.x264.ac3.mandarin\u0026english.chs-eng.adans\n大小: 6.6 GB\n日期: 2018-02-22\n热度: 12\n\n磁链: magnet:?xt=urn:btih:97BEF685F08F2CA98A6F11531CAE5DCD51EFD98B\n名称: [www.hdmayi.com]钢铁侠3.2013.1080p.bd-mp4.国英双语.中英特效字幕\n大小: 5.9 GB\n日期: 2018-01-04\n热度: 10\n\n磁链: magnet:?xt=urn:btih:89244063F9B039F0587190BA46CA63B1D5C53361\n名称: 2013.钢铁侠3.bd1080p英语中英双字[www.bdsee.cn].mp4\n大小: 5.7 GB\n日期: 2017-12-11\n热度: 32\n\n磁链: magnet:?xt=urn:btih:AFF3031AC9D8FD94FB8883E3CCB6FCE84CF68F0C\n名称: 钢铁侠3【iron man3】【dvd-rmvb.英语中字】.rmvb\n大小: 728.5 MB\n日期: 2017-10-17\n热度: 2\n\n磁链: magnet:?xt=urn:btih:FD5C31C972723956811AA0F653A4C3205D5DBAEC\n名称: 钢铁侠3.iron.man.3.2013.bd720p.x264.aac.mandarin\u0026english.chs-eng.mp4ba\n大小: 2.6 GB\n日期: 2017-10-14\n热度: 82\n\n磁链: magnet:?xt=urn:btih:AA40AEC5F9481BB5F75833B7FCBE73A74D75266D\n名称: 【钢铁侠3】【bluray-1080p高清-中英双字】【小罗伯特.唐尼2013科幻大片】\n大小: 1.6 GB\n日期: 2017-10-06\n热度: 1\n\n磁链: magnet:?xt=urn:btih:16BB0FBAC7BC9F40AE1522BA09820D3E60261664\n名称: 钢铁侠3.iron.man.3.2013.bd1080p.超清中英字幕-minimp4\n大小: 2.8 GB\n日期: 2017-09-20\n热度: 51\n\n磁链: magnet:?xt=urn:btih:0F49B618CCAD8292EE1A3FC5E38F433D44C8C51C\n名称: 钢铁侠3.iron.man.3.2013.bd1080p.x264.aac.mandarin\u0026english.chs-eng.mp4ba.mp4\n大小: 4.7 GB\n日期: 2017-09-12\n热度: 80\n```\n\n**单行显示并按大小排序（也可以指定排序顺序为 2，按热度排序）**\n```\n$ torrent-cli 战狼2 -p -s 1\nCrawling data for you.....\nmagnet:?xt=urn:btih:CC3854CACBB5434E03EFF39C693B20223E0AA39D 56.8 GB 2018-05-14\nmagnet:?xt=urn:btih:D6A5598C03C3123038DB6CAA04AE36D90BB569C6 35.0 GB 2018-02-22\nmagnet:?xt=urn:btih:5B411E880CB585B5B596DBB25BB7F0927FD44F54 13.2 GB 2018-01-01\nmagnet:?xt=urn:btih:B8E5C85B5B368060AB245AC5E434981B0D5543CA 12.4 GB 2018-02-23\nmagnet:?xt=urn:btih:4640565A71BB840D6A082B7F8D387A5FF604941A 9.2 GB 2017-12-12\nmagnet:?xt=urn:btih:B6401277BA77620727F7D6FE1345501555F7CA28 7.8 GB 2017-11-16\nmagnet:?xt=urn:btih:2154B29E07DF4D21B67488C55667B1AB22CD63F4 7.8 GB 2017-12-17\nmagnet:?xt=urn:btih:C1F01F089892ECF2AF168C190754B2921902D9E1 7.5 GB 2017-11-16\nmagnet:?xt=urn:btih:DE42BC281CF39F0F489B64F06C2440466D545C83 5.4 GB 2017-12-13\n```\n\n**或者可以保存为 csv 或者 json 文件**（建议保存为 csv 文件，json 数据会被序列化，转为 utf 编码）\n```\n$ torrent-cli 战狼2 -o movie.csv\n```\n\n\n### License\n\nMIT [©chenjiandongx](https://github.com/chenjiandongx)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenjiandongx%2Ftorrent-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenjiandongx%2Ftorrent-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenjiandongx%2Ftorrent-cli/lists"}