You know what I mean.

GitHub: Fuck-XueXiQiangGuo

Install

直接在命令行界面运行

github 源下载很慢,可以试试镜像2

网站说明文档提供的是 Ubuntu 系列安装方法,与 CentOS 系列略有区别。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# CentOS
yum update
yum upgrade
yum install -y \
wget \
unzip \
Xvfb \
gtk3 \
libXScrnSaver \
# alsa-lib-devel.x86_64

Xvfb -ac -screen scrn 1280x2000x24 :9.0 &
export DISPLAY=:9.0

# 下载并解压程序
wget -O fuck-xuexiqiangguo.zip https://cdn.staticaly.com/gh/fuck-xuexiqiangguo/Fuck-XueXiQiangGuo/master/Fuck学习强国-linux.zip
unzip -q -d ./fuck-xuexiqiangguo/ fuck-xuexiqiangguo.zip

cd fuck-xuexiqiangguo
chmod +x ./Fuck学习强国

# 运行程序
./Fuck学习强国 --headless

# 等待片刻,使用学习强国APP扫描屏幕上的二维码登录

Help

1
./Fuck学习强国 --help

Auto

编写每天随机时间执行脚本。

1
2
# vim /etc/crontab
0 8 * * * root /home/yunyou/bash/start-xxqg.sh
1
2
3
4
5
6
7
8
# vim /home/yunyou/bash/start-xxqg.sh
# start-xxqg.sh
python3 /home/yunyou/bash/close-xxqg.py
screen -r xxqg
# sleep ${RANDOM}'s'
export DISPLAY=:9.0
cd /home/yunyou/github/fuck-xuexiqiangguo
./Fuck学习强国 --headless
1
2
3
4
5
6
7
8
# kill xuexiqiangguo
# vim /home/yunyou/bash/close-xxqg.py
# close-xxqg.py
import os
import signal
list = os.popen("ps -ef|grep ./Fuck|grep headless|grep -v grep|awk '{print $2}'").readlines()
for pid in list:
os.kill(int(pid),signal.SIGKILL)