GithubHelp home page GithubHelp logo

damaihelper's Introduction

大麦抢票脚本

初衷

不要再让你爱的人花高价去买黄牛票。

功能

  • 没啥说的,就是一个简单的通过 Python+Selenium 在大麦手机版网页抢票的脚本。

Update

  • 2024年4月23日:
    • 修复各种乱七八糟的问题,完善整体大麦抢票逻辑(支持通过手机网页下单的应该都能正常提交订单了)
    • 增加大麦购票页面温馨提示遮罩处理逻辑(自动阅读温馨提示内容并点击知道了按钮)
    • 修复大麦购票页面实名制观演提示遮罩处理逻辑(自动点击知道了按钮)
    • 目前基本购票场景应该都正常使用了,日后再完善。

使用说明

注意事项

  1. 初次使用没有 Cookie ,会自动唤起浏览器访问大麦官网登录获取 Cookie ,可选择任意你喜欢的方式进行登录,无论是扫码、短信还是账号密码。
  2. 如果太久没用,请先手动删除目录下的 Cookie 存储文件cookies.pkl,然后再运行脚本重新登录。
  3. 大麦账号必须先做好实名制认证,并至少添加一位购票人实名制信息。
  4. 想到再说...

环境准备

  • Python3
    • Selenium (4.10.0以下版本)
  • Chrome 以及配置与 Chrome 版本兼容的 ChromeDriver (当然,你也可以自行研究改用其它浏览器驱动)。

脚本配置

  • 参照config.json中的[comment]字段。

脚本运行

git clone
python main.py

鸣谢

原作者:Guyungy https://github.com/Guyungy/damaihelper 提供的脚本基础逻辑!

免责声明

详见MIT License,此仓库仅用于个人参考学习,但如他人用本仓库代码用于商业用途(鄙视黄牛),侵犯到大麦网利益等,本人不承担任何责任。

damaihelper's People

Contributors

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