# 动漫资源获取插件
这个插件主要是网站爬取过来的数据,在使用命令进行搜索时候采用关键字的方式,比如`天气之子`这时搜索的是`天气之子`相关资源,如果获取的资源并不理想或者你只需要生肉(无字幕)资源时,你就需要用`天气之子 raw`或`天气之子 mkv`这种多个关键字空格方式进行获取,这种方式准确度会比直接用`天气之子`精准且效果好,建议采用多关键字的方式进行搜索。
## 使用例子
![使用例子](image/demo.png)
## 安装
`nb plugin install nonebot-plugin-animeres`
<details>
<summary>使用pip安装</summary>
`pip install nonebot-plugin-animeres`
</details>
- 命令
- `资源`、`动漫资源`
- 参数
- `资源名称`
## 配置参数
```env
ANIMERES_PROXY="" # 设置代理端口
ANIMERES_SITE="" # 选择资源站点
ANIMERES_FORWARD=false # 适用于QQ的转发形式发送
ANIMERES_LENGTH=3 # 每次发送的数量,用-1表示全部取出
ANIMERES_FORMANT="{title}\n{magnet}" # 发送的消息格式化
ANIMERES_ONESKIP=true # 当只有一个选项时跳过
ANIEMRES_PRIORITY=100
```
### ANIMERES_PROXY
通过`ANIMERES_PROXY`参数可以设置代理来加速资源的获取或者获取不到的情况
> ANIMERES_PROXY = `http://127.0.0.1:1080`
### ANIMERES_SITE
有些情况下可能某站点关闭或者当前网络访问这个站点不佳可以尝试切换到其它站点,具体可切换站点如下。
- `dongmanhuayuan`
- `myheartsite`
- `anoneko`(需要设置代理)
### ANIMERES_FORWARD
在QQ中使用的合并转发发送消息
![合并消息转发](image/forward.png)
### ANIMERES_FORMANT
格式化字符串
| 标签 | 说明 |
|---|---|
| title | 资源名称 |
| tag | 资源标签类型 |
| size | 资源大小 |
| magnet | 种子链接 |
Raw data
{
"_id": null,
"home_page": "",
"name": "nonebot-plugin-animeres",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "nonebot,nonebot2,animeres,anime",
"author": "MelodyKnit",
"author_email": "2711402357@qq.com",
"download_url": "https://files.pythonhosted.org/packages/13/74/fd2e3eff74cec2baa089a21443119c1d7f5444f7c3e38480199b2e94d06b/nonebot_plugin_animeres-1.0.4.tar.gz",
"platform": null,
"description": "# \u52a8\u6f2b\u8d44\u6e90\u83b7\u53d6\u63d2\u4ef6\n\n\u8fd9\u4e2a\u63d2\u4ef6\u4e3b\u8981\u662f\u7f51\u7ad9\u722c\u53d6\u8fc7\u6765\u7684\u6570\u636e\uff0c\u5728\u4f7f\u7528\u547d\u4ee4\u8fdb\u884c\u641c\u7d22\u65f6\u5019\u91c7\u7528\u5173\u952e\u5b57\u7684\u65b9\u5f0f\uff0c\u6bd4\u5982`\u5929\u6c14\u4e4b\u5b50`\u8fd9\u65f6\u641c\u7d22\u7684\u662f`\u5929\u6c14\u4e4b\u5b50`\u76f8\u5173\u8d44\u6e90\uff0c\u5982\u679c\u83b7\u53d6\u7684\u8d44\u6e90\u5e76\u4e0d\u7406\u60f3\u6216\u8005\u4f60\u53ea\u9700\u8981\u751f\u8089\uff08\u65e0\u5b57\u5e55\uff09\u8d44\u6e90\u65f6\uff0c\u4f60\u5c31\u9700\u8981\u7528`\u5929\u6c14\u4e4b\u5b50 raw`\u6216`\u5929\u6c14\u4e4b\u5b50 mkv`\u8fd9\u79cd\u591a\u4e2a\u5173\u952e\u5b57\u7a7a\u683c\u65b9\u5f0f\u8fdb\u884c\u83b7\u53d6\uff0c\u8fd9\u79cd\u65b9\u5f0f\u51c6\u786e\u5ea6\u4f1a\u6bd4\u76f4\u63a5\u7528`\u5929\u6c14\u4e4b\u5b50`\u7cbe\u51c6\u4e14\u6548\u679c\u597d\uff0c\u5efa\u8bae\u91c7\u7528\u591a\u5173\u952e\u5b57\u7684\u65b9\u5f0f\u8fdb\u884c\u641c\u7d22\u3002\n\n## \u4f7f\u7528\u4f8b\u5b50\n\n![\u4f7f\u7528\u4f8b\u5b50](image/demo.png)\n\n## \u5b89\u88c5\n\n`nb plugin install nonebot-plugin-animeres`\n\n<details>\n <summary>\u4f7f\u7528pip\u5b89\u88c5</summary>\n\n `pip install nonebot-plugin-animeres`\n</details>\n\n- \u547d\u4ee4\n - `\u8d44\u6e90`\u3001`\u52a8\u6f2b\u8d44\u6e90`\n- \u53c2\u6570\n - `\u8d44\u6e90\u540d\u79f0`\n\n## \u914d\u7f6e\u53c2\u6570\n\n```env\nANIMERES_PROXY=\"\" # \u8bbe\u7f6e\u4ee3\u7406\u7aef\u53e3\nANIMERES_SITE=\"\" # \u9009\u62e9\u8d44\u6e90\u7ad9\u70b9\nANIMERES_FORWARD=false # \u9002\u7528\u4e8eQQ\u7684\u8f6c\u53d1\u5f62\u5f0f\u53d1\u9001\nANIMERES_LENGTH=3 # \u6bcf\u6b21\u53d1\u9001\u7684\u6570\u91cf\uff0c\u7528-1\u8868\u793a\u5168\u90e8\u53d6\u51fa\nANIMERES_FORMANT=\"{title}\\n{magnet}\" # \u53d1\u9001\u7684\u6d88\u606f\u683c\u5f0f\u5316\nANIMERES_ONESKIP=true # \u5f53\u53ea\u6709\u4e00\u4e2a\u9009\u9879\u65f6\u8df3\u8fc7\nANIEMRES_PRIORITY=100\n\n```\n\n### ANIMERES_PROXY\n\n\u901a\u8fc7`ANIMERES_PROXY`\u53c2\u6570\u53ef\u4ee5\u8bbe\u7f6e\u4ee3\u7406\u6765\u52a0\u901f\u8d44\u6e90\u7684\u83b7\u53d6\u6216\u8005\u83b7\u53d6\u4e0d\u5230\u7684\u60c5\u51b5\n\n> ANIMERES_PROXY = `http://127.0.0.1:1080`\n\n### ANIMERES_SITE\n\n\u6709\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u67d0\u7ad9\u70b9\u5173\u95ed\u6216\u8005\u5f53\u524d\u7f51\u7edc\u8bbf\u95ee\u8fd9\u4e2a\u7ad9\u70b9\u4e0d\u4f73\u53ef\u4ee5\u5c1d\u8bd5\u5207\u6362\u5230\u5176\u5b83\u7ad9\u70b9\uff0c\u5177\u4f53\u53ef\u5207\u6362\u7ad9\u70b9\u5982\u4e0b\u3002\n\n- `dongmanhuayuan`\n- `myheartsite`\n- `anoneko`\uff08\u9700\u8981\u8bbe\u7f6e\u4ee3\u7406\uff09\n\n### ANIMERES_FORWARD\n\n\u5728QQ\u4e2d\u4f7f\u7528\u7684\u5408\u5e76\u8f6c\u53d1\u53d1\u9001\u6d88\u606f\n\n![\u5408\u5e76\u6d88\u606f\u8f6c\u53d1](image/forward.png)\n\n### ANIMERES_FORMANT\n\n\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\n\n| \u6807\u7b7e | \u8bf4\u660e |\n|---|---|\n| title | \u8d44\u6e90\u540d\u79f0 |\n| tag | \u8d44\u6e90\u6807\u7b7e\u7c7b\u578b |\n| size | \u8d44\u6e90\u5927\u5c0f |\n| magnet | \u79cd\u5b50\u94fe\u63a5 |\n",
"bugtrack_url": null,
"license": "GPL-2.0",
"summary": "\u52a8\u6f2b\u8d44\u6e90\u83b7\u53d6\u63d2\u4ef6",
"version": "1.0.4",
"project_urls": null,
"split_keywords": [
"nonebot",
"nonebot2",
"animeres",
"anime"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "956aa5e201ffaede0b66d62170990022931de2a28474a78fd88efb1618098086",
"md5": "1e19c51e2d6522cbd1fe5ffd5b9239c8",
"sha256": "3d8d3526f920650e561df6843b0fe14fc0e91fdbe0e0baa208790f7c242ebba1"
},
"downloads": -1,
"filename": "nonebot_plugin_animeres-1.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1e19c51e2d6522cbd1fe5ffd5b9239c8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 17592,
"upload_time": "2023-11-17T12:49:29",
"upload_time_iso_8601": "2023-11-17T12:49:29.527158Z",
"url": "https://files.pythonhosted.org/packages/95/6a/a5e201ffaede0b66d62170990022931de2a28474a78fd88efb1618098086/nonebot_plugin_animeres-1.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1374fd2e3eff74cec2baa089a21443119c1d7f5444f7c3e38480199b2e94d06b",
"md5": "3eb553bd720296598e493759dd0d1ba0",
"sha256": "5f16c9bd263a5ebf8a4869eb927fc202aae12159fe3d623c19d86e1a4af775f9"
},
"downloads": -1,
"filename": "nonebot_plugin_animeres-1.0.4.tar.gz",
"has_sig": false,
"md5_digest": "3eb553bd720296598e493759dd0d1ba0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 14481,
"upload_time": "2023-11-17T12:49:31",
"upload_time_iso_8601": "2023-11-17T12:49:31.430021Z",
"url": "https://files.pythonhosted.org/packages/13/74/fd2e3eff74cec2baa089a21443119c1d7f5444f7c3e38480199b2e94d06b/nonebot_plugin_animeres-1.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-17 12:49:31",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "nonebot-plugin-animeres"
}