study_xxqg/README.md

65 lines
1.6 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.

### 学习强国自动化学习
该项目基于[playwright-go](https://github.com/mxschmitt/playwright-go) 开发,支持*windows**linux*,*mac*
若在使用过程中出现什么不可预料的问题欢迎提交*issue*
## 使用
+ 从release下载对应版本压缩包
+ windows一般下载 **study_xxqg_windows_amd64.zip**
+ 首次打开会在 ```config\config.yml```生成默认配置文件
+ 生成配置文件后第一次打开会自动安装无头浏览器,可能需要耐心等待
+ 再次打开即可运行
+ windows环境推荐直接打开浏览器扫码或者在控制台出现二维码后打开当前目录```screen.png```进行扫码
+ 其他无头浏览环境请配置[pushplus](http://www.pushplus.plus/) 推送进行扫码
## 配置文件
```yaml
# 刷课模式默认为3
# 1只刷文章何视频
# 2只刷文章和视频和每日答题
# 3刷文章和视频和每日答题每周答题和专项答题
model: 3
# 日志等级
# panic
# fatal
# error
# warn, warning
# info
# debug
# trace
log_level: "info"
# 是否显示浏览器
show_browser: true
push:
ding:
enable: false
access_token: ""
secret: ""
tg:
enable: false
chat_id: ""
token: ""
# 目前仅支持pushplus推送二维码默认建议实验pushplus推送
# pushplus使用方法见http://www.pushplus.plus/
push_plus:
enable: true
token: ""
cron: ""
```
> 当前控制台二维码扫描可能出现二维码已过期的情况,请直接浏览扫码或者采用[pushplus](http://www.pushplus.plus/) 推送扫码
## 申明,该项目仅用于学习。
## 鸣谢
+ ### [imkenf/XueQG](https://github.com/imkenf/XueQG)