{"id":26319473,"url":"https://github.com/jxpro/damai-tickets","last_synced_at":"2025-03-15T15:19:11.144Z","repository":{"id":143159003,"uuid":"576737506","full_name":"Jxpro/damai-tickets","owner":"Jxpro","description":"大麦抢票脚本案例","archived":false,"fork":false,"pushed_at":"2023-10-04T14:59:17.000Z","size":22,"stargazers_count":119,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-11-07T21:54:45.712Z","etag":null,"topics":["crawler","python","selenium"],"latest_commit_sha":null,"homepage":"https://github.com/Jxpro/damai-tickets","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jxpro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-10T20:18:40.000Z","updated_at":"2023-11-07T15:59:03.000Z","dependencies_parsed_at":"2023-10-04T19:29:43.990Z","dependency_job_id":null,"html_url":"https://github.com/Jxpro/damai-tickets","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jxpro%2Fdamai-tickets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jxpro%2Fdamai-tickets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jxpro%2Fdamai-tickets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jxpro%2Fdamai-tickets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jxpro","download_url":"https://codeload.github.com/Jxpro/damai-tickets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243746230,"owners_count":20341204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crawler","python","selenium"],"created_at":"2025-03-15T15:19:10.557Z","updated_at":"2025-03-15T15:19:11.127Z","avatar_url":"https://github.com/Jxpro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 大麦网抢票脚本案例\n\n## 🛠️ 环境要求\n\n- Python 3.6 +\n- Chrome 和 [chromedriver.exe](http://chromedriver.storage.googleapis.com/index.html)（注意与chrome版本相匹配）\n- `pip install -r requirements.txt`\n\n## ❗️ 重要说明\n\n参考代码1：[ticket1.py](https://github.com/Entromorgan/Autoticket)\n\n**处理方法**：通过`selenium`模拟点击\n\n**存在的问题**：存在`webdriver`特征，无法通过滑块验证\n\n\u003e 参数说明：\n\u003e\n\u003e - `session`: 场次优先级列表\n\u003e - `price`: 票价优先级\n\u003e - `real_name`: [1,2], 实名者序号\n\u003e - `nick_name`: 用户在大麦网的昵称，用于验证登录是否成功\n\u003e - `ticket_num`: 购买票数\n\u003e - `damai_url`: [https://www.damai.cn](https://www.damai.cn/), 大麦网官网网址\n\u003e - `target_url`: https://detail.damai.cn/item.htm?id=599834886497 目标购票网址\n\u003e\n\n参考代码2：[ticket2.py](https://github.com/MakiNaruto/Automatic_ticket_purchase)\n\n**处理方法**：通过`selenium`登录获得cookie后，使用`requests`直接发送请求\n\n**存在的问题**：最后一步无法成功提交订单\n\n## 📧 联系方式\n\n如果有任何问题，欢迎到 [github issue](https://github.com/Jxpro/damai-tickets/issues) 进行讨论，或发送电子邮件到 [jxpro@qq.com](mailto:jxpro@qq.com) 来联系我\n\n## ⭐ Stargazers over time\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=Jxpro/damai-tickets\u0026type=Date\u0026theme=dark\" /\u003e\n  \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=Jxpro/damai-tickets\u0026type=Date\" /\u003e\n  \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=Jxpro/damai-tickets\u0026type=Date\" /\u003e\n\u003c/picture\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjxpro%2Fdamai-tickets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjxpro%2Fdamai-tickets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjxpro%2Fdamai-tickets/lists"}