Giter Club home page Giter Club logo

hostloc_checkin's Introduction

HostLoc 每日刷分脚本

获取二进制文件

(1) 从 Github Release 中下载

# 以 amd64 架构的系统为例
mkdir HostLoc_CheckIn
cd HostLoc_CheckIn
wget https://github.com/LordPenguin666/HostLoc_CheckIn/releases/download/V1.0/hostloc-check-in-linux-amd64.tar.gz
tar xvf hostloc-check-in-linux-amd64.tar.gz

(2) 编译 (需要拥有 go 环境)

git clone https://github.com/LordPenguin666/HostLoc_CheckIn.git
cd HostLoc_CheckIn
make default

使用方法

  1. 复制配置文件 example.json cp example.json config.json
  2. 修改配置文件 vim config.json
  3. (可选) 你也可以通过 ./hostloc -c /path/to/your/config 指定配置文件路径;
  4. (可选) 默认在 /root/HostLoc_CheckIn/ 下运行,你可以修改目录下的 run.sh 脚本;
  5. chmod +x run.sh
  6. 添加定时任务。

定时任务

  • 需要先安装 cron 有关的软件包

Debian / Ubuntu

apt install cron
systemctl enable cron
systemctl start cron

Arch Linux

pacman -S cronie

# 默认 editor 为 vi, 可能需要在 /etc/environment 下配置环境变量
EDITOR=vim

# systemd
systemctl enable cronie
systemctl start cronie
  • 使用 crontab -e 添加定时任务
  • (每日两点执行) 0 2 * * * /root/HostLoc_CheckIn/run.sh

基础配置

  "time": 5,   // 访问空间间隔 (单位 s), 最低为 5s

多帐号配置

"accounts": [
  {"username": "第一个帐号名", "password": "密码"},
  {"username": "第二个帐号名", "password": "密码"},
  {"username": "cuper", "password": "114514"}
]

Telegram 推送

  "telegram": {
    "enable": true,                    // 开启推送
    "api": "这里填写 bot api",
    "chat_id": "这里填写对话 id"
  }

hostloc_checkin's People

Contributors

lordpenguin666 avatar kukisa 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.