nonebot-plugin-jd-sign


Namenonebot-plugin-jd-sign JSON
Version 0.1.6 PyPI version JSON
download
home_pagehttps://github.com/Darker718/nonebot_plugin_jd_sign
Summary京东签到插件,支持京东cookies登录、自动签到、查询等功能
upload_time2025-07-14 17:24:54
maintainerNone
docs_urlNone
authorDarker718
requires_python<4.0,>=3.8
licenseMIT
keywords nonebot plugin 京东 签到
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # nonebot_plugin_jd_sign

🎁 一个基于 [NoneBot2](https://nonebot.dev/) 的京东签到插件,支持 QQ 机器人自动进行京东签到、查询京豆数、自动定时签到等功能。

![License](https://img.shields.io/github/license/Darker718/nonebot_plugin_jd_sign)


---

## ✨ 功能特性

- ✅ 支持京东账号登录(通过 pt_key 和 pt_pin)
- 🧾 支持签到查询(查询京豆数量与连续签到天数)
- 🔁 支持定时自动签到(每天早上 8 点,间隔执行)
- 🔍 支持查看当前登录账户状态
- 🛠️ 每个 QQ 用户单独记录 pt_key/pt_pin,支持自动更新

---

## 📦 安装

### 使用 `nb-cli` 安装(推荐):

```bash
nb plugin install nonebot_plugin_jd_sign
```

## 🔧 配置项

插件默认不需要额外配置。如需修改执行时间,请自定义 APScheduler 配置。

## 📚 使用说明

### 👉 指令列表:

| 指令     | 功能描述                                                     |
| -------- | ------------------------------------------------------------ |
| 京东登录 | 用户先发送指令然后根据提示输入 `pt_key=xxx;pt_pin=xxx;` 完成登录 |
| 京东签到 | 手动执行京东签到,返回签到结果                               |
| 查询     | 查询累计京豆与连续签到天数                                   |
| 自动签到 | 开启每日自动签到(每天早上 8 点)                            |
| 查看账户 | 查看当前登录账户的 pt_pin、自动签到状态与更新时间            |

## ⏰ 自动签到机制

- 插件依赖 `nonebot_plugin_apscheduler` 实现定时任务
- 每天早上 `08:00` 自动对开启了“自动签到”的用户依次执行签到
- 多个账户之间间隔 `30~60秒` 避免触发风控

------

## 🔧 依赖插件

- [nonebot2](https://github.com/nonebot/nonebot2)
- [nonebot-plugin-alconna](https://github.com/nonebot/plugin-alconna)
- [nonebot-plugin-apscheduler](https://github.com/nonebot/plugin-apscheduler)
- [httpx](https://www.python-httpx.org/)
- [loguru](https://github.com/Delgan/loguru)

------

## 📄 License

MIT © yourname

## 💡 鸣谢

本插件基于京东官方 API 行为模拟,仅用于学习交流,请勿用于非法用途,违反者后果自负。

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Darker718/nonebot_plugin_jd_sign",
    "name": "nonebot-plugin-jd-sign",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": null,
    "keywords": "nonebot, plugin, \u4eac\u4e1c, \u7b7e\u5230",
    "author": "Darker718",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/3f/8f/00e718f35bb3081f66d2982e2d8e7afdc3dbd6276bd962f1020ad7bc3601/nonebot_plugin_jd_sign-0.1.6.tar.gz",
    "platform": null,
    "description": "# nonebot_plugin_jd_sign\n\n\ud83c\udf81 \u4e00\u4e2a\u57fa\u4e8e [NoneBot2](https://nonebot.dev/) \u7684\u4eac\u4e1c\u7b7e\u5230\u63d2\u4ef6\uff0c\u652f\u6301 QQ \u673a\u5668\u4eba\u81ea\u52a8\u8fdb\u884c\u4eac\u4e1c\u7b7e\u5230\u3001\u67e5\u8be2\u4eac\u8c46\u6570\u3001\u81ea\u52a8\u5b9a\u65f6\u7b7e\u5230\u7b49\u529f\u80fd\u3002\n\n![License](https://img.shields.io/github/license/Darker718/nonebot_plugin_jd_sign)\n\n\n---\n\n## \u2728 \u529f\u80fd\u7279\u6027\n\n- \u2705 \u652f\u6301\u4eac\u4e1c\u8d26\u53f7\u767b\u5f55\uff08\u901a\u8fc7 pt_key \u548c pt_pin\uff09\n- \ud83e\uddfe \u652f\u6301\u7b7e\u5230\u67e5\u8be2\uff08\u67e5\u8be2\u4eac\u8c46\u6570\u91cf\u4e0e\u8fde\u7eed\u7b7e\u5230\u5929\u6570\uff09\n- \ud83d\udd01 \u652f\u6301\u5b9a\u65f6\u81ea\u52a8\u7b7e\u5230\uff08\u6bcf\u5929\u65e9\u4e0a 8 \u70b9\uff0c\u95f4\u9694\u6267\u884c\uff09\n- \ud83d\udd0d \u652f\u6301\u67e5\u770b\u5f53\u524d\u767b\u5f55\u8d26\u6237\u72b6\u6001\n- \ud83d\udee0\ufe0f \u6bcf\u4e2a QQ \u7528\u6237\u5355\u72ec\u8bb0\u5f55 pt_key/pt_pin\uff0c\u652f\u6301\u81ea\u52a8\u66f4\u65b0\n\n---\n\n## \ud83d\udce6 \u5b89\u88c5\n\n### \u4f7f\u7528 `nb-cli` \u5b89\u88c5\uff08\u63a8\u8350\uff09\uff1a\n\n```bash\nnb plugin install nonebot_plugin_jd_sign\n```\n\n## \ud83d\udd27 \u914d\u7f6e\u9879\n\n\u63d2\u4ef6\u9ed8\u8ba4\u4e0d\u9700\u8981\u989d\u5916\u914d\u7f6e\u3002\u5982\u9700\u4fee\u6539\u6267\u884c\u65f6\u95f4\uff0c\u8bf7\u81ea\u5b9a\u4e49 APScheduler \u914d\u7f6e\u3002\n\n## \ud83d\udcda \u4f7f\u7528\u8bf4\u660e\n\n### \ud83d\udc49 \u6307\u4ee4\u5217\u8868\uff1a\n\n| \u6307\u4ee4     | \u529f\u80fd\u63cf\u8ff0                                                     |\n| -------- | ------------------------------------------------------------ |\n| \u4eac\u4e1c\u767b\u5f55 | \u7528\u6237\u5148\u53d1\u9001\u6307\u4ee4\u7136\u540e\u6839\u636e\u63d0\u793a\u8f93\u5165 `pt_key=xxx;pt_pin=xxx;` \u5b8c\u6210\u767b\u5f55 |\n| \u4eac\u4e1c\u7b7e\u5230 | \u624b\u52a8\u6267\u884c\u4eac\u4e1c\u7b7e\u5230\uff0c\u8fd4\u56de\u7b7e\u5230\u7ed3\u679c                               |\n| \u67e5\u8be2     | \u67e5\u8be2\u7d2f\u8ba1\u4eac\u8c46\u4e0e\u8fde\u7eed\u7b7e\u5230\u5929\u6570                                   |\n| \u81ea\u52a8\u7b7e\u5230 | \u5f00\u542f\u6bcf\u65e5\u81ea\u52a8\u7b7e\u5230\uff08\u6bcf\u5929\u65e9\u4e0a 8 \u70b9\uff09                            |\n| \u67e5\u770b\u8d26\u6237 | \u67e5\u770b\u5f53\u524d\u767b\u5f55\u8d26\u6237\u7684 pt_pin\u3001\u81ea\u52a8\u7b7e\u5230\u72b6\u6001\u4e0e\u66f4\u65b0\u65f6\u95f4            |\n\n## \u23f0 \u81ea\u52a8\u7b7e\u5230\u673a\u5236\n\n- \u63d2\u4ef6\u4f9d\u8d56 `nonebot_plugin_apscheduler` \u5b9e\u73b0\u5b9a\u65f6\u4efb\u52a1\n- \u6bcf\u5929\u65e9\u4e0a `08:00` \u81ea\u52a8\u5bf9\u5f00\u542f\u4e86\u201c\u81ea\u52a8\u7b7e\u5230\u201d\u7684\u7528\u6237\u4f9d\u6b21\u6267\u884c\u7b7e\u5230\n- \u591a\u4e2a\u8d26\u6237\u4e4b\u95f4\u95f4\u9694 `30~60\u79d2` \u907f\u514d\u89e6\u53d1\u98ce\u63a7\n\n------\n\n## \ud83d\udd27 \u4f9d\u8d56\u63d2\u4ef6\n\n- [nonebot2](https://github.com/nonebot/nonebot2)\n- [nonebot-plugin-alconna](https://github.com/nonebot/plugin-alconna)\n- [nonebot-plugin-apscheduler](https://github.com/nonebot/plugin-apscheduler)\n- [httpx](https://www.python-httpx.org/)\n- [loguru](https://github.com/Delgan/loguru)\n\n------\n\n## \ud83d\udcc4 License\n\nMIT \u00a9 yourname\n\n## \ud83d\udca1 \u9e23\u8c22\n\n\u672c\u63d2\u4ef6\u57fa\u4e8e\u4eac\u4e1c\u5b98\u65b9 API \u884c\u4e3a\u6a21\u62df\uff0c\u4ec5\u7528\u4e8e\u5b66\u4e60\u4ea4\u6d41\uff0c\u8bf7\u52ff\u7528\u4e8e\u975e\u6cd5\u7528\u9014\uff0c\u8fdd\u53cd\u8005\u540e\u679c\u81ea\u8d1f\u3002\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "\u4eac\u4e1c\u7b7e\u5230\u63d2\u4ef6\uff0c\u652f\u6301\u4eac\u4e1ccookies\u767b\u5f55\u3001\u81ea\u52a8\u7b7e\u5230\u3001\u67e5\u8be2\u7b49\u529f\u80fd",
    "version": "0.1.6",
    "project_urls": {
        "Homepage": "https://github.com/Darker718/nonebot_plugin_jd_sign",
        "Repository": "https://github.com/Darker718/nonebot_plugin_jd_sign"
    },
    "split_keywords": [
        "nonebot",
        " plugin",
        " \u4eac\u4e1c",
        " \u7b7e\u5230"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b9b26a04ca206953326353e6b26dfe908c71b81cde383b4a92f6c83db35ab65c",
                "md5": "05f556365ed4cead8ed40f75b68c4acd",
                "sha256": "8499913cbdec3cd721072893eb8965c7642bc510c5ae50a22e9e554994d42e83"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_jd_sign-0.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "05f556365ed4cead8ed40f75b68c4acd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 7257,
            "upload_time": "2025-07-14T17:24:53",
            "upload_time_iso_8601": "2025-07-14T17:24:53.097143Z",
            "url": "https://files.pythonhosted.org/packages/b9/b2/6a04ca206953326353e6b26dfe908c71b81cde383b4a92f6c83db35ab65c/nonebot_plugin_jd_sign-0.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3f8f00e718f35bb3081f66d2982e2d8e7afdc3dbd6276bd962f1020ad7bc3601",
                "md5": "0f9c4bb50e6dfd5c6b782ed28bf9163c",
                "sha256": "6e39db81e8d005e634099d04744ae0bba54d855148cd8686448949a0d51a02ae"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_jd_sign-0.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "0f9c4bb50e6dfd5c6b782ed28bf9163c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 5814,
            "upload_time": "2025-07-14T17:24:54",
            "upload_time_iso_8601": "2025-07-14T17:24:54.306014Z",
            "url": "https://files.pythonhosted.org/packages/3f/8f/00e718f35bb3081f66d2982e2d8e7afdc3dbd6276bd962f1020ad7bc3601/nonebot_plugin_jd_sign-0.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-14 17:24:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Darker718",
    "github_project": "nonebot_plugin_jd_sign",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nonebot-plugin-jd-sign"
}
        
Elapsed time: 1.09373s