Git Product home page Git Product logo

smzdm_bot's Introduction

什么值得买每日签到脚本

1. 实现功能

  • 什么值得买每日签到
  • 通过pushplus推送运行结果到微信
  • 通过server酱推送运行结果到微信
  • 通过telegram bot推送

2. 使用方法

2.1 Git action 运行

  1. Fork此仓库项目>点击右上角 Fork 按钮即可, 欢迎点star~
  2. 修改 .github/workflows/run.yml里的下面部分, 取消注释,修改为你自己的时间
name: "SMZDM Check-in Bot"

on:
  workflow_dispatch:

  schedule:
    - cron: "0 18 * * *"
  1. Secret 新增SMZDM_COOKIE, 填入什么值得买官网获取的 Cookie 信息, 详见
  2. (可选) Secret 新增PUSH_PLUS_TOKEN用于推送通知, 详见
  3. (可选) Secret 新增SC_KEY用于推送通知, 详见
  4. (可选) Secret 新增TG_BOT_TOKENTG_USER_ID用于推送通知

2.2 本地运行

配置config.toml运行, 生成config/config_example.toml并按照需求配置

cp config/config_example.toml config/config.toml

2.3 使用 Cookie Editor

也可以使用浏览器扩展 Cookie Editor导出 cookies, 另存为cookies.json在项目的根目录

3. 其它

3.1 Cookie 获取方法

  • 使用 Chrome 浏览器访问什么值得买官网, 登录账号
  • 打开开发者工具 (Windows 快捷键F12, MacOS 快捷键option + command + i)
  • 选择 Network, 刷新页面, 选择第一个www.smzdm.com, 找到Requests Headers里的Cookie

smzdm_bot's People

Contributors

enwaiax avatar dependabot[bot] avatar

Stargazers

 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.