使用python实现i茅台自动预约[仅限于学习,不可商用]
运行:
直接运行 imtApi.py
打包:切换到imt脚本目录,执行打包命令:
pyinstaller --onefile imtApi.py
这个应用程序可以帮助你进行茅台自动化配置。以下是一些使用说明:
- 平台注册账号(可用i茅台)
- 不用登录,你可以进行预约操作。
- 点击 “去预约” 按钮,即可跳转到预约页面。
- 在预约页面,新增一个用户,需要在i茅台注册过的手机号码。
- 输入验证码后,新增成功会生成一条记录,点击信息,选择详情。
- 进入详情页,点击定时执行,输入需要执行的时间(0-59)配置的是分钟,
- 例:配置了5,9.5分执行
- 预定类型,预定商品,店铺号都是必填
- 自动预约,自动旅行,获取申购耐力值
- 执行成功查看日志
页面:
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/df6eaecad88d4bb0b09d268dc6b2c9a3.png)
![](https://img-blog.csdnimg.cn/img_convert/e8485de6c44b069d138f5f66ec01a4d7.png)
![](https://img-blog.csdnimg.cn/img_convert/1a7f378ef950abda28daead28d479e79.png)
![](https://img-blog.csdnimg.cn/img_convert/e86db4f6cfd58efaff52ceb6b8180799.png)
![](https://img-blog.csdnimg.cn/img_convert/ab18f29f5eb1d284b9386ac94aa9f537.png)
![](https://img-blog.csdnimg.cn/img_convert/86c5e0b96e0beaf2c3ea78d4e7dc1415.png)
![](https://img-blog.csdnimg.cn/img_convert/9df7b65117d08c7ee7ccc155c69afa4b.png)
![](https://img-blog.csdnimg.cn/img_convert/c62b5a19ebec0f9399b6daa6436ce1dd.png)
![](https://img-blog.csdnimg.cn/img_convert/9f9d744eecf76e0f5c970953b6e3fc62.png)
![](https://img-blog.csdnimg.cn/img_convert/5c1eec5f0979bafac7da5c1f54017dea.png)
前端:
vite
需要切换到vue目录
安装
npm install
启动
npm run dev
打包
npm run build
打包后,得到前端打包文件dist
获得后端打包文件exe和前端打包文件dist就可以直接部署在服务器上面了,前端可以直接使用nginx部署,后端简单点就执行运行就可以了。