plugin-jm-server
想法起源:https://github.com/hect0x7/JMComic-Crawler-Python/issues/192
基于原项目:https://github.com/AiCorein/Flask-Files-Server
为了方便修改,将原项目中的文件复制到本项目中,然后进行修改
使用方式
1. pip安装
pip install plugin_jm_server
2. 运行代码
from plugin_jm_server import *
server = JmServer(
'D:/',
'password',
)
server.run(
host='0.0.0.0',
port=80,
)
from plugin_jm_server import *
server = JmServer(
'D:/',
'password',
)
server.run(
host='0.0.0.0',
port=443,
ssl_context='adhoc',
)
plugins:
after_init:
- plugin: jm_server
kwargs:
password: ''
from jmcomic import *
op = create_option('op.yml')
op.download_album(123)
op.wait_all_plugins_finish()
效果图(文件浏览、整章看图)
1. 电脑浏览器访问
2. 手机浏览器访问