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

File metadata

File hashes

Hashes for nonebot_plugin_jmcomicdownload-1.1.5.tar.gz
Algorithm Hash digest
SHA256 c6becb05318b234b3519061a95b6fd39dec0da959a1b7af9051e669bf95d505a
MD5 170983b2a524f7c6274d390a34e4929c
BLAKE2b-256 219f20a920d7c8b89957fef0533308560c18a420a258ba5bd8efdc081e72f7ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_jmcomicdownload-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 67b4f763108b6b373e756333bf73e27829f9d5816dde3d0ff6325e4b9e44adaa
MD5 03b4853267b1122015e4695c1caae379
BLAKE2b-256 4be53eba03c4bc5034514b5daa19834a0301dadb263c0f54f5d3d50ebfb8f371

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