{"id":13569019,"url":"https://github.com/Juszoe/flexget-nexusphp","last_synced_at":"2025-04-04T05:31:13.894Z","repository":{"id":37548206,"uuid":"198603867","full_name":"Juszoe/flexget-nexusphp","owner":"Juszoe","description":"A flexget plugin for filter nexusphp torrents","archived":false,"fork":false,"pushed_at":"2022-03-09T14:48:39.000Z","size":88,"stargazers_count":515,"open_issues_count":42,"forks_count":116,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-08-02T14:05:48.907Z","etag":null,"topics":["flexget","flexget-plugins","nexusphp","torrent"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Juszoe.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":"2019-07-24T09:34:43.000Z","updated_at":"2024-07-21T02:55:58.000Z","dependencies_parsed_at":"2022-07-12T16:22:36.446Z","dependency_job_id":null,"html_url":"https://github.com/Juszoe/flexget-nexusphp","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juszoe%2Fflexget-nexusphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juszoe%2Fflexget-nexusphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juszoe%2Fflexget-nexusphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Juszoe%2Fflexget-nexusphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Juszoe","download_url":"https://codeload.github.com/Juszoe/flexget-nexusphp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223100098,"owners_count":17087386,"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":["flexget","flexget-plugins","nexusphp","torrent"],"created_at":"2024-08-01T14:00:34.918Z","updated_at":"2024-11-05T01:31:34.501Z","avatar_url":"https://github.com/Juszoe.png","language":"Python","funding_links":[],"categories":["BT"],"sub_categories":["BT AutoDownload"],"readme":"# flexget-nexusphp\nFlexget插件，增强对NexusPHP的过滤\u003cbr\u003e\n过滤条件包括种子优惠信息（free等）、做种者情况、下载者情况\n- [站点支持列表](#site)\n- [支持作者](#donate)\n---\n更多插件：[IO过高时停止任务插件](https://github.com/Juszoe/flexget-limiter)\n\n## 免责声明\n本插件会爬取details.php页面，请将参数限制到合理的范围，减轻对服务器负担\u003cbr\u003e\n本插件已尽量减轻服务器负担，因本插件造成账号封禁等损失，请自行承担后果\u003cbr\u003e\n**建议** 将RSS条目限制在20条以内，将Flexget运行频率设置在10分钟以上。\n如果不想对人数进行过滤，不建议设置seeders和leechers参数。\u003cbr\u003e\n\n## 运行环境\n- [Flexget](https://flexget.com/)\n- Python 3.X 或 Python 2.7 [其他版本解决方案](#version)\n\n## 安装插件\n1. 下载插件 [nexusphp.py](https://github.com/Juszoe/flexget-nexusphp/releases)\n2. 在Flexget配置文件夹下新建plugins文件夹，例如：\n```\n~/.flexget/plugins/  # Linux\nC:\\Users\\\u003cYOURUSER\u003e\\flexget\\plugins\\  # Windows\n```\n再次注意`plugins`文件夹和`config.yml`处在同一级目录下，例如：\n```\n/.flxget\n  ┕━config.yml\n  ┕━plugins\n    ┕━nexusphp.py\n```\n3. 将插件拷贝至plugins\n4. 若启用了Web-UI或守护进程，则重启flexget重新加载配置\n\n## 使用\n1. 编辑flexget配置文件，添加nexusphp选项，按照需要进行配置\n#### 简单配置\n```yaml\nnexusphp:\n  cookie: 'a=xxx; b=xxx'  # 必填\n  discount:  # 优惠信息 选填\n    - free\n```\n#### 完整配置\n```yaml\nnexusphp:\n  cookie: 'a=xxx; b=xxx'  # 必填\n  discount:  # 优惠信息 选填\n    - free\n    - 2x\n    - 2x50%\n    - 2xfree\n    - 50%\n    - 30%\n  seeders:  # 做种情况 选填（兼容性较差不建议使用）\n    min: 1\n    max: 2\n  leechers:  # 下载情况 选填（兼容性较差不建议使用）\n    min: 10\n    max: 100\n    max_complete: 0.8\n  left-time: 1 hours  # 优惠剩余时间 选填\n  hr: no  # 是否下载HR 选填\n  adapter:  # 站点适配器，自行适配站点，参考最下方常见问题 选填\n    free: free\n    2x: twoup\n    2xfree: twoupfree\n    30%: thirtypercent\n    50%: halfdown\n    2x50%: twouphalfdown\n  comment: no  # 在torrent注释中添加详情链接 选填\n  user-agent: xxxxxx  # 浏览器标识 选填\n  remember: yes  # 记住优惠信息 选填 请勿随意设置\n```\n2. 为rss的other_fields字段添加link属性\n```yaml\nrss:\n  url: https://www.example.com/rss\n  other_fields: [link]\n```\n3. 启动flexget\n``` bash\nflexget execute\n# 如果仅仅想要测试而不下载，可以添加 --test 参数\nflexget --test execute\n```\n\n## 详细配置\n- `cookie` **网站cookie** 必须填写\n- `discount` **优惠类型** 默认不限制优惠类型。\u003cbr\u003e\n列表类型，Flexget会只下载含有列表内优惠类型的种子。\u003cbr\u003e\n有效值：`free 2x 2x50% 2xfree 50% 30%`\u003cbr\u003e\n`注意：x为英文字母`\n- `seeders` **做种情况** 做种人数超出范围的，Flexget将不会下载\n  - `注意：此选项兼容性较差`\n  - `min` 最小做种人数。整数，默认不限制\n  - `max` 最大做种人数。整数，默认不限制\n- `leechers` **下载情况** 下载人数超出范围的，Flexget将不会下载\n  - `注意：此选项兼容性较差`\n  - `min` 最小下载人数。整数，默认不限制\n  - `max` 最大下载人数。整数，默认不限制\n- `max_complete` **下载者中最大完成度** 超过这个值将不下载。\n小数，范围`0-1.0`，默认为1\n- `left-time` **最小剩余时间** 当实际剩余时间小于设置的值，则不下载。\n时间字符串，例如 `3 hours`、`10 minutes`、`1 days`。\n例如设置`1 hours`，优惠剩余59分钟，那么就不下载。默认不限制\n- `hr` **是否下载HR种** 默认 yes\u003cbr\u003e\n  1. `yes` 会下载HR，即不过滤HR\u003cbr\u003e\n  2. `no` 不下载HR\u003cbr\u003e\n- `adapter` **站点适配器** 站点不兼容时可自定义，具体参考\n[判断站点以及适配站点](https://github.com/Juszoe/flexget-nexusphp/blob/master/site.md)\n- `comment` **在torrent注释中添加详情链接**\u003cbr\u003e\n  1. `yes` 在torrent注释中添加详情链接，方便在BT客户端查看\u003cbr\u003e\n  2. `no` 默认值\u003cbr\u003e\n- `user-agent` **浏览器标识** 默认为Google浏览器\n- `remember` **记住优惠信息** 不建议设置为 no，因为会增大站点压力。默认 yes\n\n\n## 完整配置示例\n### 免费热种\n```yaml\ntasks:\n  my-free-task:\n    rss:\n      url: https://www.example.com/rss.xml\n      other_fields:\n        - link\n    nexusphp:\n      cookie: 'a=xxx; b=xxx'\n      discount:\n        - free\n        - 2xfree\n    download: ~/flexget/torrents/\n```\n### 热种\n```yaml\ntasks:\n  my-hot-task:\n    rss:\n      url: https://www.example.com/rss.xml\n      other_fields:\n        - link\n    nexusphp:\n      cookie: 'a=xxx; b=xxx'\n      seeders:\n        min: 1\n      leechers:\n        min: 20\n    download: ~/flexget/torrents/\n```\n### 避免HR\n```yaml\ntasks:\n  no-hr-task:\n    rss:\n      url: https://www.example.com/rss.xml\n      other_fields:\n        - link\n    nexusphp:\n      cookie: 'a=xxx; b=xxx'\n      hr: no\n    download: ~/flexget/torrents/\n```\n\n## 常见问题\n### 我的python版本是2.X如何使用？\n\u003cspan id=\"version\"\u003e\u003c/span\u003e\n本插件只支持Python 3.X或Python 2.7版本，其他版本不可用，请卸载Flexget后使用Python3重装\n```bash\npip uninstall flexget  # 卸载\npip3 install flexget  # 使用pip3安装\n```\n### 目前支持哪些站点\n\u003cspan id=\"site\"\u003e\u003c/span\u003e\n如果站点禁止使用脚本爬虫，应立即停止使用本插件\n- 任何未修改关键结构的nexusphp站点\n- PTH\n- MT（站点安全性较高，[ip或浏览器变动](#user-agent)可能无法访问）\n- OB\n- Sky\n- School\n- U2\n- CHD\n- TJU（禁止脚本，请勿使用）\n- SSD\n- OpenCD\n- TTG（不支持人数筛选）\n- FRDS\n- Dream\n- HDC\n- LemonHD\n\n### 如何判断站点是否支持\n[判断站点以及适配站点](https://github.com/Juszoe/flexget-nexusphp/blob/master/site.md)\n\n### 确认cookie正确，还是提示 Can't access the site. Your cookie may be wrong!\n\u003cspan id=\"user-agent\"\u003e\u003c/span\u003e\n某些站点安全性要求较高，ip或浏览器变动时无法使用cookie访问，需要重新登录。\u003cbr\u003e\n解决办法：设置 user-agent 参数与浏览器相同，查看浏览器user-agent的方法自行搜索，并保证登录ip与使用Flexget相同。\n\n### 站点启用了Cloudflare五秒盾无法获取信息\n当触发Cloudflare五秒盾通常有以下提示：\n```\nNexusPHP._get_info: 503 Server Error: Service Temporarily Unavailable for url\n```\n解决方案也很简单，可以考虑使用Flexget官方内置的插件[cfscraper](https://flexget.com/Plugins/cfscraper)\n1. 首先需要安装依赖\n``` bash\npip install cloudscraper\n```\n2. 然后启用\n``` yaml\ncfscraper: yes\n```\n**注意！绕过站点安全机制可能有风险，自行决定是否使用**\n\n\n## 支持作者\n\u003cspan id=\"donate\"\u003e\u003c/span\u003e\n插件经常需要时间维护，如果本插件对你有用，可以请作者吃顿饭😉，给作者提供更多动力\u003cbr\u003e\n\u003cimg width=\"559\" alt=\"wechatpay\" src=\"https://user-images.githubusercontent.com/47920609/118388150-3c97f880-b655-11eb-8801-0c2df3a0b966.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJuszoe%2Fflexget-nexusphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJuszoe%2Fflexget-nexusphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJuszoe%2Fflexget-nexusphp/lists"}