Giter Club home page Giter Club logo

hao4k-signin-action's Introduction

Hao4K 每日签到 action hao4k

友情链接

掘金每日签到+抽奖脚本

基于 Github Actions 的 Hao4K 自动签到来增加K币

功能

  • 每日凌晨 12 点定时签到
  • 支持监控告警,具体配置文档查看Server 酱,消息通道支持以下渠道
    • 企业微信应用消息
    • Android,
    • Bark iOS,
    • 企业微信群机器人
    • 钉钉群机器人
    • 飞书群机器人
    • 自定义微信测试号
    • 方糖服务号

使用方式

  • Fork 本仓库
  • 配置 hao4k 账户信息(由于是敏感信息,所以将其配置到了仓库 setting/secrets 下)
    • 找到 .github/workflows/hao4k.yml line 27, env 下的三个 secret
      • HAO4K_USERNAME
      • HAO4K_PASSWORD
      • SERVERCHAN_SCKEY (监控告警 server 酱 sckey)
    • 配置到仓库的 setting/secrets
  • 修改定时任务时间,在 .github/workflows/hao4k.yml line 8, 修改 cron 计时表达式,参考 schedule(可选)

自动同步上游代码

fork 本项目后,使用下面方法自动同步上游代码

安装 Github App Pull, 将 fork 后的项目添加到 Repository access 列表中即可实现自动同步上游代码

开发

运行环境

  • Python 3.6 +

安装依赖

pip3 install -r requirements.txt

执行脚本前初始化账户信息

初始化数据,将 env 替换为真实数据

# hao4k 账户信息
username = os.environ["HAO4K_USERNAME"]
password = os.environ["HAO4K_PASSWORD"]
# 添加 server 酱通知
sckey = os.environ["SERVERCHAN_SCKEY"]

运行

python3 signin.py

hao4k-signin-action's People

Contributors

cy920820 avatar debiancc avatar fddc avatar

Watchers

 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.