Git Product home page Git Product logo

check_in's Introduction

自动签到

使用 GitHub Actions 自动签到。

支持签到平台

1. 实现功能

  • 通过 钉钉群机器人 推送通知到钉钉群
  • 通过 SERVERCHAN 推送简单的运行结果到微信
  • github actions 每日 8 点、12点定时运行

    0 0,12 * * *
    (亲测过几次,这个时间感觉不太准,难道实例每次执行的时区不同?)
    因 GitHub Actions 为美西时间,+13 小时为**时间(即设置的时候需要 -13 小时)。

2. 使用方法

  1. Fork 此项目,欢迎点star~
  2. 设置签到平台的 cookie 信息
    2.1. Secret 新增SMZDM_COOKIE,从什么值得买官网 提取的 cookie 信息。
    2.2. Secret 新增V2EX_COOKIE,从V2EX 官网 提取的 cookie 信息。
  3. (可选)通知
    3.1. SERVERCHAN 通知:Secret 新增SERVERCHAN_SENDKEY,获取方法请查看文档
    3.2. 钉钉群机器人通知:Secret 新增DINGTALK_ROBOT_SECRETDINGTALK_ROBOT_TOKEN,获取方法请查看「钉钉机器人」。注意,需要加签
  4. Fork 后必须修改一下文件,才能执行定时任务, 可修改 README.md。更改执行

3. 其它

3.1 cookie 获取方法

以下为例子

  • 首先使用chrome浏览器,访问什么值得买官网, 登陆账号
  • Windows系统可按 F12 快捷键打开开发者工具, Mac 快捷键 option + command + i
  • 选择开发者工具Network,刷新页面 ,选择第一个www.smzdm.com, 找到 Requests Headers 里的 Cookie

3.2 更改执行时间

.github/check-in.yml

- cron: '0 0 * * *'

语法与 Linux 操作系统的 crontab 计划任务相同,具体可自行搜索 “linux crontab”。

  • 本项目参考了部分“签到”开源项目

check_in's People

Contributors

courtrts 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.