{"id":25000500,"url":"https://github.com/jader/juejin-auto","last_synced_at":"2025-07-05T13:33:41.556Z","repository":{"id":47121755,"uuid":"452580283","full_name":"Jader/juejin-auto","owner":"Jader","description":"juejin-auto-checkin","archived":false,"fork":false,"pushed_at":"2022-10-20T00:51:22.000Z","size":1689,"stargazers_count":2,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T08:52:17.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jader.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-27T07:21:10.000Z","updated_at":"2023-03-24T09:44:31.000Z","dependencies_parsed_at":"2023-01-20T15:46:04.510Z","dependency_job_id":null,"html_url":"https://github.com/Jader/juejin-auto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jader%2Fjuejin-auto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jader%2Fjuejin-auto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jader%2Fjuejin-auto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jader%2Fjuejin-auto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jader","download_url":"https://codeload.github.com/Jader/juejin-auto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543883,"owners_count":21121838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-04T19:35:14.017Z","updated_at":"2025-04-12T08:52:22.845Z","avatar_url":"https://github.com/Jader.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 掘金每日自动签到，自动抽奖，自动粘喜气\n\n本项目使用`Github Action`来部署自动签到程序，无需自己购买服务器，安全可靠且方便。另外支持钉钉机器人通知，中了大奖第一时间便可知晓。\n\n### 使用方式\n\n1. `fork`本项目。\n\n![Fork项目](./statics/imgs/fork.png)\n\n2. 依次点击【Setting】、【Secrets】、【New repository secret】。\n\n![New repository secret](./statics/imgs/secrets.png)\n\n3. 把 Name 设置为`COOKIE`这个字符串，Value 设置为`自己掘金的Cookie`。\n\n![action-secrets](./statics/imgs/action-secrets.jpg)\n\n4. 掘金的 Cookie 可以在掘金打开开发者工具，然后依次点击【Network】、【Fetch/XHR】（或者【XHR】）、【任一 Name】查看是否有`cookie`字段，如果没有可以换一个接口试试，找到后复制`cookie`的值，粘贴到上面 Value 处，并点击【Add secret】。\n\n![get_cookie](./statics/imgs/get_cookie.png)\n\n5. 允许 Github Actions 工作流。\n\n![enable](./statics/imgs/enable.png)\n\n6. 第二天查看是否已经签到成功，如果中实物奖品请尽量及时填写收货地址。\n\n### 抽奖时间修改\n\n本程序默认是在北京时间凌晨 2 点去执行，如果需要修改签到时间，可以修改`.github/workflows/check_in.yml`文件中的`cron`字段，该字段文档可以[查看这里](https://docs.github.com/en/actions/reference/events-that-trigger-workflows)。\n\n### 抽奖梭哈\n\n在 Github 的 Secrets 中在添加一个变量，Name 是`ALL_IN`，Value 是 `true`。\n\n### 接入钉钉机器人\n\n抽奖结果可以在`掘金`和`Github Action`上查看，但是有的时候我们需要更加实时的查看中奖信息，这个时候考虑接入钉钉机器人，具体如下：\n\n1. 创建一个打卡群。点击钉钉右上角的加号，再点击【发起群聊】，选择一个非公司的群，如【考试群】。\n\n![建群](./statics/imgs/dingtalk1.png)\n\n2. 输入喜欢的群名称，然后点击【创建】。\n\n![创建](./statics/imgs/dingtalk2.png)\n\n3. 在群内点击右上角设置按钮，然后依次点【智能群助手】、【添加机器人】、【自定义】、【添加】。\n\n![添加机器人](./statics/imgs/dingtalk3.png)\n\n4. 给机器人起一个名字，然后点【加签】，并复制秘钥的内容（秘钥有点长，要复制输入框内的所有内容）。\n\n![加签](./statics/imgs/dingtalk4.png)\n\n5. 在 Github 的 Secrets 中在添加一个变量，Name 是`DINGTALK_SECRET`，Value 是刚才复制的内容（操作过程可以参考上面【使用方式】第 2、3 步）。\n\n![添加DINGTALK_SECRET](./statics/imgs/dingtalk5.png)\n\n6. 完成后复制`Webhook`的内容。\n\n![复制Webhook](./statics/imgs/dingtalk6.png)\n\n7. 在 Github 的 Secrets 中在添加一个变量，Name 是`DINGTALK_WEBHOOK`，Value 是刚才复制的内容。\n\n![添加DINGTALK_WEBHOOK](./statics/imgs/dingtalk7.png)\n\n8. 返回钉钉完成即可，由于我们是凌晨签到的，如果害怕大半夜推送打扰到自己，可以把群设置成消息免打扰。\n\n### 接入微信通知\n\n微信通知依赖于企业微信，通过企业微信向微信推送消息\n\n#### 第一步，注册企业\n\n用电脑打开[企业微信官网](https://work.weixin.qq.com/)，注册一个企业。**有手机号就可以注册，不用营业执照！不用营业执照！不用营业执照！**\n\n#### 第二步，创建应用\n\n注册成功后，点「管理企业」进入管理界面，选择「应用管理」 → 「自建」 → 「创建应用」\n\n![](https://theseven.ftqq.com/20210208143228.png)\n\n应用名称随意填，可见范围选择公司名。\n\n![](https://theseven.ftqq.com/20210208143327.png)\n\n创建完成后进入应用详情页，可以得到应用 ID( `agentid` )①，应用 Secret( `secret` )②。\n\n![](https://theseven.ftqq.com/20210208143553.png)\n\n#### 第三步，获取企业 ID\n\n进入「[我的企业](https://work.weixin.qq.com/wework_admin/frame#profile)」页面，拉到最下边，可以得到企业 ID③。\n\n#### 第四步，推送消息到微信\n\n进入「我的企业」 → 「[微信插件](https://work.weixin.qq.com/wework_admin/frame#profile/wxPlugin)」，拉到下边扫描二维码，关注以后即可收到推送的消息。\n\n![](https://theseven.ftqq.com/20210208144808.png)\n\nPS：如果出现`接口请求正常，企业微信接受消息正常，个人微信无法收到消息`的情况：\n\n1. 进入「我的企业」 → 「[微信插件](https://work.weixin.qq.com/wework_admin/frame#profile/wxPlugin)」，拉到最下方，勾选 “允许成员在微信插件中接收和回复聊天消息” ![](https://img.ams1.imgbed.xyz/2021/06/01/HPIRU.jpg)\n\n2. 在企业微信客户端 「我」 → 「设置」 → 「新消息通知」中关闭 “仅在企业微信中接受消息” 限制条件 ![](https://img.ams1.imgbed.xyz/2021/06/01/HPKPX.jpg)\n\n#### 第五步，在 github setting 添加变量\n\n在 Github 的 Secrets 中在添加三个变量：\n\n1. Name 是`WX_APP_ID`，Value 是第二步的 AgentId。\n\n2. Name 是`WX_APP_SECRET`，Value 是第二步 Secret。\n\n3. Name 是`WX_COMPANY_ID`，Value 是第三步的 企业 ID。\n\n### 接入飞书机器人\n\n飞书机器人通知依赖于飞书，通过飞书向指定群组推送消息，具体操作如下:\n\n1. 打开飞书，聊天列表顶部加号`创建群组`,群名称任意，点击创建 ![](./statics/imgs/feishu1.png)\n\n2. 进入群组，点击群组设置按钮添加机器人 ![](./statics/imgs/feishu2.png)\n\n3. 选择自定义机器人 ![](./statics/imgs/feishu3.png)\n\n4. 机器人名称和描述随意填写,点击下一步 ![](./statics/imgs/feishu4.png)\n\n5. 在`安全设置`中勾选`签名校验`,复制下 webhook 地址和签名校验内容，在 Github 的 Secrets 中在添加 2 个变量，Name 是`FEISHU_WEBHOOK`，Value 填写 webhook 地址,Name 是`FEISHU_SECRET`，Value 填写的签名校验内容 ![](./statics/imgs/feishu5.png) ![](./statics/imgs/feishu6.png) ![](./statics/imgs/feishu7.png)\n\n### 接入企业微信机器人\n\n企业微信机器人通知依赖于企业微信，通过企业微信向指定群组推送消息，具体操作如下:\n\n1. 打开企业微信，聊天列表顶部加号`创建群组`,群名称任意，点击创建 ![](./statics/imgs/workwx1.png)\n\n2. 进入群组，点击群组设置按钮添加群机器人 ![](./statics/imgs/workwx2.png)\n\n3. 点击“新创建一个机器人” ![](./statics/imgs/workwx3.png)\n\n4. 机器人名称和ICON随意填写,点击下一步 ![](./statics/imgs/workwx4.png)\n\n5. 在 Github 的 Secrets 中在添加一个变量，Name 是`WORKWX_WEBHOOK`，Value 是刚刚创建机器人 Webhook 地址。![](./statics/imgs/workwx5.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjader%2Fjuejin-auto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjader%2Fjuejin-auto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjader%2Fjuejin-auto/lists"}