Coder Social home page Coder Social logo

hostloc_getpoints's Introduction

hostloc_getPoints

小鸡定时获取hostloc积分

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

第一步下载下列代码

方法1: 【建议】下载到本地进行修改:

https://github.com/DocWho22/hostloc_getPoints/blob/main/hostloc_auto_get_points.py

方法2:直接下载到服务器

wget -p /root/hostloc https://raw.githubusercontent.com/DocWho22/hostloc_getPoints/main/hostloc_auto_get_points.py

第二步在209, 210, 211行代码处添加你的用户名、密码、serverChan的SendKey 如果是在小鸡上进行修改

vim /root/hostloc/hostloc_auto_get_points.py

修改这几行

username = "在此填入用户名"
password = "在此填入密码"
serverChan = "在此填入Server酱SendKey"

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

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

crontab -e

添加

10 2 * * * sleep 5;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任务

python3 /root/hostloc/hostloc_auto_get_points.py

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

Credits

原作者:https://github.com/Jox2018/hostloc_getPoints 在原作者基础上增加了serverChan推送功能

hostloc_getpoints's People

Contributors

jox2018 avatar docwho22 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.