Coder Social home page Coder Social logo

imaotai-reserve's Introduction

i茅台预约工具----GitHub Actions版

GitHub Stars GitHub Forks GitHub Closed Issues GitHub commit activity (branch) GitHub Last Commit

功能:

  • 集成Github Actions
  • 多账号配置
  • 账号有效期管控
  • 手机号加密保存
  • 自动获取app版本
  • 微信消息推送

原理:

1、登录获取验证码
2、输入验证码获取TOKEN
3、获取当日SESSION ID
4、根据配置文件预约CONFIG文件中,所在城市的i茅台商品

使用方法:

1、安装依赖

pip3 install --no-cache-dir -r requirements.txt

2、修改config.py,按照你的需求修改相关配置,这里很重要,建议每个配置项都详细阅读。

3、按提示输入 预约位置、手机号、验证码 等,生成的token等。很长时间不再需要登录。支持多账号,支持加密。

  1. 第一次使用先清空./myConfig/credentials中的信息,或者直接删除credentials文件也可以
  2. 再去配置环境变量 GAODE_KEY,再运行login.py.
python3 login.py
# 都选择完之后可以去./myConfig/credentials中查看

4、python3 main.py ,执行预约操作

python3 main.py

5、配置 Github actions,每日自动预约,省去自己买服务器的成本。

  • 先Fork本项目,再去自己的项目中配置PUSHPLUS_KEY和和PRIVATE_AES_KEY

欢迎请我喝咖啡(O.o),对我下班和周末时光的努力进行肯定,您的赞赏将会给我带来更多动力。或者动动小手点个小星星

感谢老板赞赏,排名不分先后

  • *minal
  • *hoty
  • 佚名
  • *宇
  • *wang
  • *LiuLiang
  • *辉
  • *困
  • *ame

特别感谢

技术思路:https://blog.csdn.net/weixin_47481826/article/details/128893239

初版代码:https://github.com/tianyagogogo/imaotai

imaotai-reserve's People

Contributors

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