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.6.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.6.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_jmcomicdownload-1.1.6.tar.gz
Algorithm Hash digest
SHA256 186f8173d5a3292dec07f2171cf82fbf610bc4136adea8f71df0e94c41f788c4
MD5 b3c9b89a148c109f80714a3a8aa9509e
BLAKE2b-256 d39a6db1eb7eaacb21eb87fcb2bb8fb23788218e3c6b67fe23f68a6172a76b17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_jmcomicdownload-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 538cb5bcce03657b1fd7836de73b6d3f5c0f5f0095dd21509992a039b5bf7b1f
MD5 d9ca487bba04d1b8ec1c6c9e20f9e1a1
BLAKE2b-256 f2ad36c1ab2fe0f61a1d72db0e1c8b49b936c79ea1881665b07d575630956760

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