# 大麦网抢票脚本案例
## 🛠️ 环境要求
- Python 3.6 +
- Chrome 和 [chromedriver.exe](http://chromedriver.storage.googleapis.com/index.html)(注意与chrome版本相匹配)
- `pip install -r requirements.txt`
## ❗️ 重要说明
参考代码1:[ticket1.py](https://github.com/Entromorgan/Autoticket)
**处理方法**:通过`selenium`模拟点击
**存在的问题**:存在`webdriver`特征,无法通过滑块验证
> 参数说明:
>
> - `session`: 场次优先级列表
> - `price`: 票价优先级
> - `real_name`: [1,2], 实名者序号
> - `nick_name`: 用户在大麦网的昵称,用于验证登录是否成功
> - `ticket_num`: 购买票数
> - `damai_url`: [https://www.damai.cn](https://www.damai.cn/), 大麦网官网网址
> - `target_url`: https://detail.damai.cn/item.htm?id=599834886497 目标购票网址
>
参考代码2:[ticket2.py](https://github.com/MakiNaruto/Automatic_ticket_purchase)
**处理方法**:通过`selenium`登录获得cookie后,使用`requests`直接发送请求
**存在的问题**:最后一步无法成功提交订单
## 📧 联系方式
如果有任何问题,欢迎到 [github issue](https://github.com/Jxpro/damai-tickets/issues) 进行讨论,或发送电子邮件到 [[email protected]](mailto:[email protected]) 来联系我
## ⭐ Stargazers over time
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Jxpro/damai-tickets&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Jxpro/damai-tickets&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=Jxpro/damai-tickets&type=Date" />
</picture>
大麦抢票脚本案例.zip
版权申诉
20 浏览量
2023-10-31
08:07:55
上传
评论
收藏 17KB ZIP 举报
xiaoshun007~
- 粉丝: 3849
- 资源: 3131
最新资源
- 基于matlab实现字符识别的参考程序,用所用的字体识别率挺高,部分手写的也能识别,但是还不能识别扭曲和倾斜的字符 .rar
- 基于matlab实现指纹识别系统 包括数据库导入、图像选择识别、帮助功能、识别图像可视、gabor滤波可视,实现界面操作.rar
- 基于matlab实现指纹识别,利用gabor滤波器,提取指纹特征,只能呢读取bmp图像.rar
- 基于matlab实现于数字图像相关方法中散斑质量评价
- 基于matlab实现遗传算法和佳点集遗传算法的基本思想和不同点,用遗传算法测试一标准函数 佳点集算法测试一标准函数
- tensorflow-gpu-2.5.1-cp38-cp38-manylinux2010-x86-64.whl
- tensorflow-gpu-2.5.0-cp39-cp39-manylinux2010-x86-64.whl
- tensorflow-gpu-2.5.2-cp39-cp39-manylinux2010-x86-64.whl
- 内含方正小标宋简体、仿宋-Gb2312、黑体、楷体、宋体,五个公文常用字体
- 记忆卡牌游戏源码及可运行文件
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈