<div align=center>
<img width="250" height="312" src="https://github.com/HibiKier/nonebot-plugin-zxreport/blob/main/docs_image/tt.jpg"/>
</div>
<div align="center">
<p>
<img src="https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/template/plugin.svg" alt="NoneBotPluginText">
</p>
# nonebot-plugin-zxpix
_✨ 基于 [NoneBot2](https://github.com/nonebot/nonebot2) 的一个插件 ✨_
![python](https://img.shields.io/badge/python-v3.9%2B-blue)
![nonebot](https://img.shields.io/badge/nonebot-v2.1.3-yellow)
![onebot](https://img.shields.io/badge/onebot-v11-black)
[![license](https://img.shields.io/badge/license-AGPL3.0-FE7D37)](https://github.com/HibiKier/zhenxun_bot/blob/main/LICENSE)
</div>
## 📖 介绍
<div align="center">
🎉 __这是一个公开的图库API,希望大家共同维护,看看你的xp(bushi__ 🎉
</div>
[小真寻](https://github.com/HibiKier/zhenxun_bot)会将你的xp分享给其他人!
通过提交的 __PID__, __UID__, ~~__关键词__~~ 来收录图片
为保证质量, __UID__ 收录只会保存收藏数大于 __450__ 的图片
> [!NOTE]
>
> <div align="center"><b>小真寻也很可爱呀,也会很喜欢你!</b></div>
>
> <div align="center"><img width="235" height="235" src="https://github.com/HibiKier/nonebot-plugin-zxpm/blob/main/docs_image/tt3.png"/><img width="235" height="235" src="https://github.com/HibiKier/nonebot-plugin-zxpm/blob/main/docs_image/tt1.png"/><img width="235" height="235" src="https://github.com/HibiKier/nonebot-plugin-zxpm/blob/main/docs_image/tt2.png"/></div>
## 📈 统计
<div align="center">
![stat](http://pix.zhenxun.org/pix/stat?t=15)
</div>
## 💿 安装
```python
pip install nonebot-plugin-zxpix
```
```python
nb plugin install nonebot-plugin-zxpix
```
## 💿 配置
| 配置 | 类型 | 默认值 | 说明 |
| :------------------------- | :---: | :----------------------: | --------------------------------------------------------------------------------- |
| zxpix_api | str | http://pix.zhenxun.org | zhenxun-pix-api地址 |
| zxpix_image_size | str | large | ["large", "medium", "original", "square_medium"]图片大小 |
| zxpix_timeout | int | 10 | 请求时长 |
| zxpix_show_info | bool | true | 显示图片的uid,pid,标题 |
| zxpix_allow_group_r18 | bool | false | 允许群组中使用-r参数 |
| zxpix_system_proxy | str | None | 系统代理 |
| zxpix_max_once_num2forward | int | 0 | 多于该数量的图片时使用转发消息,0为不使用 |
| zxpix_nginx | str | pixiv.re | 反代地址 |
| zxpix_small_nginx | str | i.suimoe.com | 缩略图反代地址 |
| zxpix_image_to_bytes | bool | false | 是否将图片转换为bytes发送 |
## 🎁 使用
```python
pix ?*[tags] ?[-n 1]: 通过 tag 获取相似图片,不含tag时随机抽取, tag也可以是uid和pid和作者名称
-n表示数量, -r表示查看r18, -noai表示过滤ai
示例:pix 萝莉 白丝
示例:pix 萝莉 白丝 -n 10 (10为数量)
示例:pix 13929393-0 查看pid为13929393的第1张的图片(多图时)
示例:pix 121323322 查看uid或pid为121323322的图片
pix图库 ?[tags](使用空格分隔): 查看pix图库数量
pix添加 ['u', 'p'] [*content]
u: uid
p: pid
示例:
pix添加 u 123456789 12312333 ...
pix添加 p 123456789
以下block与nsfw设置仅仅提交一个请求,需要图库管理员审核
引用 /original : 下载原图
引用 /info : 引用图片查看图片信息
引用 /block ?[-u]: 提交图片block请求,存在-u时将block该uid下所有图片
引用 /nsfw n: 设置图片nsfw,n在[0, 1, 2]之间
0: 普通
1: 色图
2: r18
引用消息 /star : 收藏图片
引用消息 /unatar : 取消收藏图片
pix收藏 : 查看个人收藏
pix排行 ?[10] -r: 查看收藏排行, 默认获取前10,包含-r时会获取包括r18在内的排行
```
## ❤ 感谢
- 可爱的小真寻 Bot [`zhenxun_bot`](https://github.com/HibiKier/zhenxun_bot): 我谢我自己,桀桀桀
Raw data
{
"_id": null,
"home_page": "https://github.com/HibiKier/nonebot-plugin-zxpix",
"name": "nonebot-plugin-zxpix",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": null,
"author": "HibiKier",
"author_email": "775757368@qq.com",
"download_url": "https://files.pythonhosted.org/packages/78/af/8080e24072693f9f0f3c03384d8a6c3ba2b01df20ea8a6e54e963d0ceaab/nonebot_plugin_zxpix-0.2.3.tar.gz",
"platform": null,
"description": "<div align=center>\n\n<img width=\"250\" height=\"312\" src=\"https://github.com/HibiKier/nonebot-plugin-zxreport/blob/main/docs_image/tt.jpg\"/>\n\n</div>\n\n<div align=\"center\">\n\n<p>\n <img src=\"https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/template/plugin.svg\" alt=\"NoneBotPluginText\">\n</p>\n\n\n# nonebot-plugin-zxpix\n\n_\u2728 \u57fa\u4e8e [NoneBot2](https://github.com/nonebot/nonebot2) \u7684\u4e00\u4e2a\u63d2\u4ef6 \u2728_\n\n![python](https://img.shields.io/badge/python-v3.9%2B-blue)\n![nonebot](https://img.shields.io/badge/nonebot-v2.1.3-yellow)\n![onebot](https://img.shields.io/badge/onebot-v11-black)\n[![license](https://img.shields.io/badge/license-AGPL3.0-FE7D37)](https://github.com/HibiKier/zhenxun_bot/blob/main/LICENSE)\n\n</div>\n\n## \ud83d\udcd6 \u4ecb\u7ecd\n\n<div align=\"center\">\n\n\ud83c\udf89 __\u8fd9\u662f\u4e00\u4e2a\u516c\u5f00\u7684\u56fe\u5e93API\uff0c\u5e0c\u671b\u5927\u5bb6\u5171\u540c\u7ef4\u62a4\uff0c\u770b\u770b\u4f60\u7684xp(bushi__ \ud83c\udf89\n\n</div>\n\n[\u5c0f\u771f\u5bfb](https://github.com/HibiKier/zhenxun_bot)\u4f1a\u5c06\u4f60\u7684xp\u5206\u4eab\u7ed9\u5176\u4ed6\u4eba\uff01 \n\u901a\u8fc7\u63d0\u4ea4\u7684 __PID__\uff0c __UID__\uff0c ~~__\u5173\u952e\u8bcd__~~ \u6765\u6536\u5f55\u56fe\u7247 \n\u4e3a\u4fdd\u8bc1\u8d28\u91cf\uff0c __UID__ \u6536\u5f55\u53ea\u4f1a\u4fdd\u5b58\u6536\u85cf\u6570\u5927\u4e8e __450__ \u7684\u56fe\u7247\n\n\n> [!NOTE]\n>\n> <div align=\"center\"><b>\u5c0f\u771f\u5bfb\u4e5f\u5f88\u53ef\u7231\u5440\uff0c\u4e5f\u4f1a\u5f88\u559c\u6b22\u4f60\uff01</b></div>\n>\n> <div align=\"center\"><img width=\"235\" height=\"235\" src=\"https://github.com/HibiKier/nonebot-plugin-zxpm/blob/main/docs_image/tt3.png\"/><img width=\"235\" height=\"235\" src=\"https://github.com/HibiKier/nonebot-plugin-zxpm/blob/main/docs_image/tt1.png\"/><img width=\"235\" height=\"235\" src=\"https://github.com/HibiKier/nonebot-plugin-zxpm/blob/main/docs_image/tt2.png\"/></div>\n\n## \ud83d\udcc8 \u7edf\u8ba1\n\n<div align=\"center\">\n\n![stat](http://pix.zhenxun.org/pix/stat?t=15)\n\n</div>\n\n## \ud83d\udcbf \u5b89\u88c5\n\n```python\npip install nonebot-plugin-zxpix\n```\n\n```python\nnb plugin install nonebot-plugin-zxpix\n```\n\n## \ud83d\udcbf \u914d\u7f6e\n| \u914d\u7f6e | \u7c7b\u578b | \u9ed8\u8ba4\u503c | \u8bf4\u660e |\n| :------------------------- | :---: | :----------------------: | --------------------------------------------------------------------------------- |\n| zxpix_api | str | http://pix.zhenxun.org | zhenxun-pix-api\u5730\u5740 |\n| zxpix_image_size | str | large | [\"large\", \"medium\", \"original\", \"square_medium\"]\u56fe\u7247\u5927\u5c0f |\n| zxpix_timeout | int | 10 | \u8bf7\u6c42\u65f6\u957f |\n| zxpix_show_info | bool | true | \u663e\u793a\u56fe\u7247\u7684uid\uff0cpid\uff0c\u6807\u9898 |\n| zxpix_allow_group_r18 | bool | false | \u5141\u8bb8\u7fa4\u7ec4\u4e2d\u4f7f\u7528-r\u53c2\u6570 |\n| zxpix_system_proxy | str | None | \u7cfb\u7edf\u4ee3\u7406 |\n| zxpix_max_once_num2forward | int | 0 | \u591a\u4e8e\u8be5\u6570\u91cf\u7684\u56fe\u7247\u65f6\u4f7f\u7528\u8f6c\u53d1\u6d88\u606f\uff0c0\u4e3a\u4e0d\u4f7f\u7528 |\n| zxpix_nginx | str | pixiv.re | \u53cd\u4ee3\u5730\u5740 |\n| zxpix_small_nginx | str | i.suimoe.com | \u7f29\u7565\u56fe\u53cd\u4ee3\u5730\u5740 |\n| zxpix_image_to_bytes | bool | false | \u662f\u5426\u5c06\u56fe\u7247\u8f6c\u6362\u4e3abytes\u53d1\u9001 |\n\n## \ud83c\udf81 \u4f7f\u7528\n\n\n```python\n\npix ?*[tags] ?[-n 1]: \u901a\u8fc7 tag \u83b7\u53d6\u76f8\u4f3c\u56fe\u7247\uff0c\u4e0d\u542btag\u65f6\u968f\u673a\u62bd\u53d6, tag\u4e5f\u53ef\u4ee5\u662fuid\u548cpid\u548c\u4f5c\u8005\u540d\u79f0\n -n\u8868\u793a\u6570\u91cf, -r\u8868\u793a\u67e5\u770br18, -noai\u8868\u793a\u8fc7\u6ee4ai\n \u793a\u4f8b\uff1apix \u841d\u8389 \u767d\u4e1d\n \u793a\u4f8b\uff1apix \u841d\u8389 \u767d\u4e1d -n 10 \uff0810\u4e3a\u6570\u91cf\uff09\n \u793a\u4f8b\uff1apix 13929393-0 \u67e5\u770bpid\u4e3a13929393\u7684\u7b2c1\u5f20\u7684\u56fe\u7247\uff08\u591a\u56fe\u65f6\uff09\n \u793a\u4f8b\uff1apix 121323322 \u67e5\u770buid\u6216pid\u4e3a121323322\u7684\u56fe\u7247\n\npix\u56fe\u5e93 ?[tags](\u4f7f\u7528\u7a7a\u683c\u5206\u9694): \u67e5\u770bpix\u56fe\u5e93\u6570\u91cf\n\npix\u6dfb\u52a0 ['u', 'p'] [*content]\n u: uid\n p: pid\n\n \u793a\u4f8b:\n pix\u6dfb\u52a0 u 123456789 12312333 ...\n pix\u6dfb\u52a0 p 123456789\n\n\u4ee5\u4e0bblock\u4e0ensfw\u8bbe\u7f6e\u4ec5\u4ec5\u63d0\u4ea4\u4e00\u4e2a\u8bf7\u6c42\uff0c\u9700\u8981\u56fe\u5e93\u7ba1\u7406\u5458\u5ba1\u6838\n\n\u5f15\u7528 /original : \u4e0b\u8f7d\u539f\u56fe\n\u5f15\u7528 /info : \u5f15\u7528\u56fe\u7247\u67e5\u770b\u56fe\u7247\u4fe1\u606f\n\u5f15\u7528 /block ?[-u]: \u63d0\u4ea4\u56fe\u7247block\u8bf7\u6c42\uff0c\u5b58\u5728-u\u65f6\u5c06block\u8be5uid\u4e0b\u6240\u6709\u56fe\u7247\n\u5f15\u7528 /nsfw n: \u8bbe\u7f6e\u56fe\u7247nsfw\uff0cn\u5728[0, 1, 2]\u4e4b\u95f4\n 0: \u666e\u901a\n 1: \u8272\u56fe\n 2: r18\n\n\u5f15\u7528\u6d88\u606f /star : \u6536\u85cf\u56fe\u7247\n\u5f15\u7528\u6d88\u606f /unatar : \u53d6\u6d88\u6536\u85cf\u56fe\u7247\npix\u6536\u85cf : \u67e5\u770b\u4e2a\u4eba\u6536\u85cf\npix\u6392\u884c ?[10] -r: \u67e5\u770b\u6536\u85cf\u6392\u884c, \u9ed8\u8ba4\u83b7\u53d6\u524d10\uff0c\u5305\u542b-r\u65f6\u4f1a\u83b7\u53d6\u5305\u62ecr18\u5728\u5185\u7684\u6392\u884c\n```\n\n## \u2764 \u611f\u8c22\n\n- \u53ef\u7231\u7684\u5c0f\u771f\u5bfb Bot [`zhenxun_bot`](https://github.com/HibiKier/zhenxun_bot): \u6211\u8c22\u6211\u81ea\u5df1\uff0c\u6840\u6840\u6840\n",
"bugtrack_url": null,
"license": "AGPL3.0",
"summary": "\u771f\u5bfbPIX\u56fe\u5e93",
"version": "0.2.3",
"project_urls": {
"Homepage": "https://github.com/HibiKier/nonebot-plugin-zxpix",
"Repository": "https://github.com/HibiKier/nonebot-plugin-zxpix"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a9efdf26e0c46989d2232897cf0e0d610ca31327e3f769d8e865bda148d1ab4b",
"md5": "9650989ec3dc7f5874578b6643e2b94d",
"sha256": "8e4466f53287a74cece6abd011d29239e16a7fb49a944537ad46a1c4763f3a55"
},
"downloads": -1,
"filename": "nonebot_plugin_zxpix-0.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9650989ec3dc7f5874578b6643e2b94d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 33167,
"upload_time": "2024-11-22T07:48:42",
"upload_time_iso_8601": "2024-11-22T07:48:42.052541Z",
"url": "https://files.pythonhosted.org/packages/a9/ef/df26e0c46989d2232897cf0e0d610ca31327e3f769d8e865bda148d1ab4b/nonebot_plugin_zxpix-0.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "78af8080e24072693f9f0f3c03384d8a6c3ba2b01df20ea8a6e54e963d0ceaab",
"md5": "9077ac7d412c7c3d412b14fffaef7112",
"sha256": "da1ad5a4b3a11be208256d136a105ae839fb0fcb944a5c9c74bfce82213e29a8"
},
"downloads": -1,
"filename": "nonebot_plugin_zxpix-0.2.3.tar.gz",
"has_sig": false,
"md5_digest": "9077ac7d412c7c3d412b14fffaef7112",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 26328,
"upload_time": "2024-11-22T07:48:44",
"upload_time_iso_8601": "2024-11-22T07:48:44.090579Z",
"url": "https://files.pythonhosted.org/packages/78/af/8080e24072693f9f0f3c03384d8a6c3ba2b01df20ea8a6e54e963d0ceaab/nonebot_plugin_zxpix-0.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-22 07:48:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "HibiKier",
"github_project": "nonebot-plugin-zxpix",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "nonebot-plugin-zxpix"
}