Giter Club home page Giter Club logo

baibutieba-sign's Introduction

  • 该项目会长期更新。
  • 欢迎提issue,维护者看到后都会积极回答。

百度贴吧每日自动签到 :octocat:

本项目使用Github Action来部署自动签到程序,无需自己购买服务器,安全可靠且方便。另外支持钉钉机器人通知。

使用方式

  1. fork本项目。

Fork项目

  1. 依次点击【Setting】、【Secrets】、【New repository secret】。

New repository secret

  1. 把 Name 设置为COOKIE这个字符串,Value 设置为自己贴吧账号的Cookie

action-secrets

  1. 百度贴吧的 Cookie 可以在贴吧首页F12打开开发者工具,然后依次点击【Network】、【Fetch/XHR】(或者【XHR】)、【任一 Name】查看是否有cookie字段,如果没有可以换一个接口试试,找到后复制cookie的值,粘贴到上面 Value 处,并点击【Add secret】。

get_cookie

  1. 允许 Github Actions 工作流。

enable

签到时间修改

本程序默认是在北京时间凌晨 2 点去执行,如果需要修改签到时间,可以修改.github/workflows/check_in.yml文件中的cron字段,该字段文档可以查看这里

接入钉钉机器人

签到结果可以在贴吧Github Action上查看,如果需要更加实时的查看信息,这个时候考虑接入钉钉机器人,具体如下:

  1. 创建一个打卡群。点击钉钉右上角的加号,再点击【发起群聊】,选择一个非公司的群,如【考试群】。

建群

  1. 输入喜欢的群名称,然后点击【创建】。

  2. 在群内点击右上角设置按钮,然后依次点【智能群助手】、【添加机器人】、【自定义】、【添加】。

添加机器人

  1. 给机器人起一个名字,然后点【加签】,并复制秘钥的内容(秘钥有点长,要复制输入框内的所有内容)。

加签

  1. 在 Github 的 Secrets 中在添加一个变量,Name 是DINGTALK_SECRET,Value 是刚才复制的内容(操作过程可以参考上面【使用方式】第 2、3 步)。

添加DINGTALK_SECRET

  1. 完成后复制Webhook的内容。

复制Webhook

  1. 在 Github 的 Secrets 中在添加一个变量,Name 是DINGTALK_WEBHOOK,Value 是刚才复制的内容。

添加DINGTALK_WEBHOOK

  1. 返回钉钉完成即可,由于我们是凌晨签到的,如果害怕大半夜推送打扰到自己,可以把群设置成消息免打扰。

通知

重要声明 📢

该项目开发的初衷是为了学术研究。

baibutieba-sign's People

Contributors

xsu-git avatar suxinsuxin avatar

Watchers

James Cloos 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.