{"id":18663242,"url":"https://github.com/ronething/xiudong-selenium","last_synced_at":"2025-04-13T10:58:03.159Z","repository":{"id":37079625,"uuid":"482274750","full_name":"ronething/xiudong-selenium","owner":"ronething","description":"Implement showstart order service based on python with selenium and flask(基于 selenium 和 flask 实现的秀动辅助)","archived":false,"fork":false,"pushed_at":"2023-08-15T01:23:55.000Z","size":355,"stargazers_count":198,"open_issues_count":5,"forks_count":31,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T02:11:42.407Z","etag":null,"topics":["python","selenium","showstart","xiudong"],"latest_commit_sha":null,"homepage":"https://blog.csdn.net/ronething/article/details/124222763","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronething.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-16T14:25:15.000Z","updated_at":"2025-03-25T02:44:02.000Z","dependencies_parsed_at":"2025-03-17T13:10:48.022Z","dependency_job_id":"93eac9cb-c8b3-4450-847c-29f89c3d8105","html_url":"https://github.com/ronething/xiudong-selenium","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fxiudong-selenium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fxiudong-selenium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fxiudong-selenium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronething%2Fxiudong-selenium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronething","download_url":"https://codeload.github.com/ronething/xiudong-selenium/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703196,"owners_count":21148117,"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":["python","selenium","showstart","xiudong"],"created_at":"2024-11-07T08:15:47.686Z","updated_at":"2025-04-13T10:58:03.113Z","avatar_url":"https://github.com/ronething.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### xiudong-selenium\n\n\u003e 此版本为 selenium 模拟浏览器操作。\n\n试试能不能抢到椅子乐团演出票\n\ngithub repo: https://github.com/ronething/xiudong-selenium 防止一部分爬虫乱转载。\n\n#### usage\n\nchromedriver 程序需要下载一下\n\nhttps://chromedriver.chromium.org/downloads\n\n```\ngit clone https://github.com/ronething/xiudong-selenium.git\npip3 install -r req.txt\npython3 main.py\n```\n\n提供了两个 api\n\n- 一个是跳转到登录页面，请自行登录 `/login`\n- 一个是通用购买演出票 api，请自行传入对应参数, 支持定时功能 `/buy?event=xxx\u0026ticketId=xxx\u0026cron_time=xxx`\n- 支持自动选择观演人 \n\n`need_select` 如果不传，则不会选择观演人，如果传了，则会获取 `select_num` 的值进行观演人数量的选择, 具体逻辑参见代码\n \n```sh\n$ curl \"http://127.0.0.1:9997/buy?event=169893\u0026ticketId=xxx\u0026need_select=True\u0026ticketNum=1\u0026select_num=1\"\n```\n\n- 现可通过 [xiudong-go](https://github.com/ronething/xiudong-go) 进行 ticketId 的获取\n- 如果多次刷新 login 且登录页面没有进行登录，可能会存在线程阻塞问题，因为 max_workers 设置了 10 个, 暂时可以通过关闭窗口解决\n- 如果确认订单页面显示已售罄，需要不断刷新直到出现立即支付，这一点在捡漏的时候很有用\n- 只是给大家提供点思路，其他请自行阅读代码，祝大家好运\n- **注意：** 有问题请先看 [issue](https://github.com/ronething/xiudong-selenium/issues?q=is%3Aissue), 没有则新开 issue 提问即可\n\n### 成功截图\n\n昨晚抢到了。不错。\n\n![](./img/chairs.png)\n\n### 免责声明\n\n本仓库发布的 `xiudong-selenium` 项目中涉及的任何脚本，仅用于测试和学习研究，禁止用于商业用途，不能保证其合法性，准确性，完整性和有效性，请根据情况自行判断。\n\n本项目内所有资源文件，禁止任何公众号、自媒体进行任何形式的转载、发布。\n\n本人对任何脚本问题概不负责，包括但不限于由任何脚本错误导致的任何损失或损害.\n\n间接使用脚本的任何用户，包括但不限于建立VPS或在某些行为违反国家/地区法律或相关法规的情况下进行传播, 本人 对于由此引起的任何隐私泄漏或其他后果概不负责。\n\n请勿将 `xiudong-selenium` 项目的任何内容用于商业或非法目的，否则后果自负。\n\n如果任何单位或个人认为该项目的脚本可能涉嫌侵犯其权利，则应及时通知并提供身份证明，所有权证明，我们将在收到认证文件后删除相关脚本。\n\n以任何方式查看此项目的人或直接或间接使用 `xiudong-selenium` 项目的任何脚本的使用者都应仔细阅读此声明。本人 保留随时更改或补充此免责声明的权利。\n一旦使用并复制了任何相关脚本或 `xiudong-selenium` 项目，则视为您已接受此免责声明。\n\n您必须在下载后的24小时内从计算机或手机中完全删除以上内容。\n\n本项目遵循 `GPL-3.0 License` 协议，如果本特别声明与 `GPL-3.0 License` 协议有冲突之处，以本特别声明为准。\n\n\u003e 您使用或者复制了本仓库且本人制作的任何代码或项目，则视为已接受此声明，请仔细阅读\n您在本声明未发出之时点使用或者复制了本仓库且本人制作的任何代码或项目且此时还在使用，则视为已接受此声明，请仔细阅读\n\n2023/05/18 补充：理论上目前使用此项目抢到票的概率会比较低，仅作为学习交流使用，谢谢。\n\n### change log\n\n- 2022/06/18 支持自动选择观演人\n\n### Star History\n\n![Star History Chart](https://api.star-history.com/svg?repos=ronething/xiudong-selenium\u0026type=Date)\n\n### acknowledgement\n\n- https://selenium-python.readthedocs.io/getting-started.html -\u003e 模拟浏览器操作\n- https://flask.palletsprojects.com/en/2.0.x -\u003e web 框架\n- https://github.com/yangn0/Xiudong-Script -\u003e 提供了思路\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronething%2Fxiudong-selenium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronething%2Fxiudong-selenium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronething%2Fxiudong-selenium/lists"}