Skip to content

Jox2018/hostloc_getPoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

hostloc_getPoints

小鸡定时获取hostloc积分

github action大规模失效,mjj平均一人10鸡,以下可以部署到自己的小鸡上

第一步下载下列代码 https://github.com/Jox2018/hostloc_getPoints/blob/main/hostloc_auto_get_points.py

第二步把175,176行代码改为

username = "账户"
password = "密码"

第三步上面文件上传到小鸡

第四步在小鸡里新建crontab任务

crontab -e

添加

10 2 * * * sleep 5;cd /root/hostloc/ && /usr/local/bin/python3 /root/hostloc/hostloc_auto_get_points.py

/root/hostloc/为你上传的路径 /usr/local/bin/python3为你小鸡python3的引用路径

提示

1.如果提示以下错误

Traceback (most recent call last):
  File "/root/hostloc/hostloc_auto_get_points.py", line 6, in
   ...

请安装request模块

pip3 install requests

2.老哥们可先运行成功以后再添加crontab任务

cd /root/hostloc/ && /usr/local/bin/python3 /root/hostloc/hostloc_auto_get_points.py

env HOSTLOC_USERNAME=username1,username2... HOSTLOC_PASSWORD=password1,password2...

About

小鸡定时获取hostloc积分

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages