GithubHelp home page GithubHelp logo

1916757740 / smzdm_bot-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from enwaiax/smzdm_bot

0.0 0.0 0.0 51 KB

什么值得买自动签到 2023

License: Apache License 2.0

Python 94.82% Dockerfile 5.18%

smzdm_bot-1's Introduction

什么值得买每日签到脚本

1. 实现功能

  • 什么值得买每日签到
  • Github Action 定时执行, 务必自行更改为随机时间
  • 本地 Docker 定时运行
  • 通过pushplus推送运行结果到微信(不推荐)
  • 通过server酱推送运行结果到微信
  • 通过telegram bot推送
  • 自定义反代Telegram Bot API, 搭建教程

2. 使用方法

2.1 Git Action 运行

务必自行更改为随机时间

  1. Fork此仓库项目>, 欢迎star~
  2. 修改 .github/workflows/checkin.yml里的下面部分, 取消schedule两行的注释,自行设定时间
# UTC时间,对应Beijing时间 9:30
schedule:
  - cron: "30 1 * * *"
  1. Secret 新增ANDROID_COOKIE,SK ,USER_AGENTTOKEN 方法详见
  2. (可选) Secret 新增PUSH_PLUS_TOKEN用于推送通知, 详见
  3. (可选) Secret 新增SC_KEY用于推送通知, 详见
  4. (可选) Secret 新增TG_BOT_TOKENTG_USER_ID用于推送通知
  5. (可选) Secret 新增TG_BOT_API用于自定义反代的Telegram Bot API

2.2 本地运行

复制app/config/config_example.tomlapp/config/config.toml,并按照需求配置

python3 -m venv .venv
source .venv/bin/activate
cd app
pip install -r requirements.txt
python main.py

2.3 本地 docker 运行

docker-compose.yml

本地生成一个.env 文件, 用于配置 docker-compose.yml 运行所需要的环境变量, 如下:

# Cookie
USER_AGENT = ""
ANDROID_COOKIE = ""
SK = ""
TOKEN = ""

# Notification
PUSH_PLUS_TOKEN = ""
SC_KEY = ""
TG_BOT_TOKEN = ""
TG_USER_ID = ""

# 定时设定(可选), 若未设定则随机定时执行
SCH_HOUR=
SCH_MINUTE=

3. 其它

3.1 手机抓包

抓包工具可使用 HttpCanary,教程参考HttpCanary 抓包

  1. 按照上述教程配置好 HttpCanary
  2. 开始抓包,并打开什么值得买 APP
  3. 过滤域名为user-api.smzdm.com的 post 请求

更新日志

  • 2022-12-08, 签到失败,浏览器端签到需要滑动验证码认证
  • 2023-01-11, 更改User-AgentiPhone后可bypass滑块认证
  • 2023-01-14, 登录认证失败, 签到失效
  • 2023-02-18, 通过安卓端验证登录,感谢jzksnsjswkw/smzdm-app的思路。旧版代码查看old分支

smzdm_bot-1's People

Contributors

enwaiax avatar dependabot[bot] avatar 1916757740 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.