From ec5f9cbd7865e709016c78a6f0203465b71f85cd Mon Sep 17 00:00:00 2001 From: sftang Date: Tue, 8 Mar 2022 15:53:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 70 ++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 54 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 8ec82b0..a2e2551 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,26 @@ 由于涉及ocr本地验证,因此docker镜像相对比较大。 +docker部署 + +```shell +docker pull xingsu1021/pthelper +``` + +本地部署需要Python3.9+ + +```shell +pip install --no-cache-dir -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/ +``` + # v1.0 说明 + 1、支持签到功能 2、支持配置导出导入 3、支持签到信息发送IYUU,Telegram,邮箱 ## 支持站点 + 站点 | 签到支持| --- |--- | 红豆饭(hdfans) | ✔ @@ -52,47 +66,71 @@ A-SOUL(asf) | ✔ 海带(hd) | ✘ 海豹(greatposterwall) | ✘ - ## 暂时不支持站点 + 站点 | --- | 馒头 | ## 已知问题站点 + 站点 |--- | --- |--- | 学校(btschool) | ✔ ## 截图 -1. IYUU -![](https://gcore.jsdelivr.net/gh/xingsu1021/pthelper@master/static/screenshot/iyuu.png) -2. Telegram -![](https://gcore.jsdelivr.net/gh/xingsu1021/pthelper@master/static/screenshot/tg.png) -3. 邮箱 -![](https://gcore.jsdelivr.net/gh/xingsu1021/pthelper@master/static/screenshot/mail.png) -4. 补签 -![](https://gcore.jsdelivr.net/gh/xingsu1021/pthelper@master/static/screenshot/buqian.png) +1. IYUU +![](https://raw.githubusercontent.com/xingsu1021/pthelper/master/static/screenshot/iyuu.png) +2. Telegram +![](https://raw.githubusercontent.com/xingsu1021/pthelper/master/static/screenshot/tg.png) +3. 邮箱 +![](https://raw.githubusercontent.com/xingsu1021/pthelper/master/static/screenshot/mail.png) +4. 补签 +![](https://raw.githubusercontent.com/xingsu1021/pthelper/master/static/screenshot/buqian.png) + +# docker-compose.yml + +```dockerfile +version: '3.7' +services: + flexget: + image: pthelper:v1.0 + container_name: pthelper + restart: always + volumes: + - /home/data/docker-compose/pthelper/db:/db + - /home/data/docker-compose/pthelper/logs:/logs + - /home/data/docker-compose/pthelper/backups:/backups + ports: + - "58000:80" +``` ## 感谢 -带带弟弟OCR通用验证码识别:https://github.com/sml2h3/ddddocr -爱语飞飞:https://iyuu.cn - https://github.com/ledccn/IYUUPlus -PTPP:https://github.com/ronggang/PT-Plugin-Plus -PTPP增强版:白大版PTPP@菩提蛋(没找到仓库:() +**带带弟弟OCR通用验证码识别: +** 爱语飞飞: +** +** PTPP: +** PTPP增强版:白大版PTPP@菩提蛋(没找到仓库:() + +## 以下忽略,只做个人记录 -以下忽略,只做个人记录 ------------------------------------------------------------- + # 本地启动测试命令 + python manage.py runserver --settings=pthelper.local_settings # 编译镜像 + docker build -t pthelper:v1.0 . # py文件编译pyc + python -O -m compileall -b . # 上传镜像 + docker commit 4f7d7c5a8b58 xingsu1021/pthelper:latest -docker push xingsu1021/pthelper \ No newline at end of file +docker push xingsu1021/pthelper