Skip to main content

A NoneBot2 plugin to download comics from JMComic and generate PDFs for upload to group chats.

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot_plugin_jmcomicdownload

✨ NoneBot JMcomic下载后转换成pdf上传群文件 ✨

license pypi python

📖 介绍

基于Python API For JMComic下载本子图片到本地然后通过image2pdf整合成单个pdf然后上传到群文件

因为看见了qq群转发的核心科技所以自己也想搞一个

纯编程小白,头一次写头一次搞插件也是头一次写github文档,出了问题会尽量去修的

不知道怎么用nonebot的请看这个文档

⚠️ 注意事项

人在海外肉身翻墙,不知道挂不挂代理会不会出问题,没有尝试过任何代理,如果报错请尝试代理和填写cookie

请保证群文件有空间上传,否则会报错

有一些本子是只允许登录用户查看的,如果想要查看请填写对应的cookie信息

图片合成pdf的这一步需要先全部转进内存然后合成pdf,没有足够内存请不要下载长篇

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot_plugin_jmcomicdownload
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot_plugin_jmcomicdownload
pdm
pdm add nonebot_plugin_jmcomicdownload
poetry
poetry add nonebot_plugin_jmcomicdownload
conda
conda install nonebot_plugin_jmcomicdownload

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_jmcomicdownload"]

⚙️ 配置

在 nonebot2 项目的config.yml文件中添加下表中的cookie配置,

配置项 必填 默认值 说明
AVS 如果不需要查看仅登录本子的可以不填
__cflb 如果不需要查看仅登录本子的可以不填
cf_clearance 如果不需要查看仅登录本子的可以不填
base_dir 图片下载路径,推荐放在bot的根目录下

🎉 使用

指令表

指令 权限 需要@ 范围 说明
/jm 群员 群聊 空一格后输入神秘数字即可

效果图

下载效果图

🙏 鸣谢

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_jmcomicdownload-1.1.4.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file nonebot_plugin_jmcomicdownload-1.1.4.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_jmcomicdownload-1.1.4.tar.gz
Algorithm Hash digest
SHA256 b8e5bfccd9994feebdbb58a026eab56544adff45a481d99fa74cbf38633ed8c7
MD5 f1965f5797fa1fa085b7420e9783c948
BLAKE2b-256 56e5542a8ee90cb6f231313cb5b3c61dbc1a2249f01840dbdf6df8df7cf0ca2e

See more details on using hashes here.

File details

Details for the file nonebot_plugin_jmcomicdownload-1.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_jmcomicdownload-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1d9a2df31b5cc1f54911ed66ed09a9f3c960a608c7bfc7db2ecbfb0a4d05550b
MD5 6fa7eea701695ef8297ffdc05b9e41b4
BLAKE2b-256 594bce9c4c27174c354e613a96688972fd0334b08db6e865750f1f5ec9b9f6d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page