PyBot/README.md
2024-12-09 23:03:35 +08:00

44 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 持续更新中 <br>
RSS订阅链接来源:https://github.com/zhengjim/Chinese-Security-RSS <br>
使用python-json进行格式化,然后使用飞书webhook机器人进行发送 <br>
config.yaml可指定大部分可能需要的参数 <br>
### 下一步计划 <br>
- 添加更多RSS订阅源 <br>
- 将所有打印信息转为logging info并存档(已完成)<br>
- 将logging info转为异步的loguru <br>
- 探查异常中断原因(暂未清楚发生原因,猜测和4hou获取rss后的代码逻辑有关) <br>
- 存档所有推送文章方便以后查看 <br>
- 添加更多推送方式,如邮件、微信等 <br>
### 日志相关
请查看./log文件夹下内容 <br>
### 使用建议: <br>
Linux系统建议下载screen于后台持续运行本脚本。 <br>
debian/ubuntu/kali: `apt install screen` <br>
centos: `yum install screen` <br>
创建新会话:`screen -S 会话名称` <br>
保存并退回到界面:`ctrl+a+d` <br>
重新进入会话:`screen -r 会话名称` <br>
结束对话:进入会话后输入`exit` <br>
### 使用方法: <br>
先下载支持库:`pip install -r requirements.txt` <br>
随后便可直接运行:`python Core.py` <br>
### 配置 <br>
首先先在飞书中创建群组,然后再创建WebHook机器人 <br>
<center><img src="./imgs/group.jpg" width="50%" alt="群组"/></center><br>
<center><img src="./imgs/add_bot.jpg" width="50%" alt="添加机器人"/></center><br>
随后,在配置机器人时可打开签名验证(您也可自行选择IP白名单) <br>
<center><img src="./imgs/bot_config.jpg" width="50%" alt="机器人配置"/></center><br>
再之后,将配置信息填入config.yaml文件当中 <br>
<center><img src="./imgs/config.jpg" alt="配置"/></center><br>
那么选择,您就可以开始运行使用了。 <br>
### 运行结果 <br>
![飞书展示](./imgs/start.jpg) <br>
![后端展示](./imgs/run.jpg) <br>