Giter Site home page Giter Site logo

17770137331 / tickets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shiyutim/tickets

0.0 0.0 0.0 1.39 MB

大麦抢票软件,一个基于 tauri + rust + vue 调用接口的抢票软件。

License: MIT License

JavaScript 36.55% Rust 15.86% CSS 2.90% HTML 0.65% Vue 44.04%

tickets's Introduction

抢票软件(大麦)

一个基于 tauri + rust + vue 构建的抢票软件,全部调用大麦的接口。目前只支持大麦平台(默认)。后续会支持其他平台。

本项目只用来学习 tauri、rust 等,切勿进行盈利,所造成的后果与本人无关。

下载

点击查看下载页面,下载对应的版本即可。

编译(需要 rust、node 环境):

  1. 安装 rust curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh rust 官网
  2. 安装 node node 官网
  3. 运行 yarn 安装依赖
  4. 运行 yarn tauri build 打包程序。生成的程序在 src-tauri/target/release 下。

使用

  • 填入 cookie

F12 打开控制台,在 network 下,找到对应的 http 请求,然后找到 cookie 选项,全部复制填入即可。 商品

  • 输入 itemId

商品链接:https://m.damai.cn/damai/detail/item.html?itemId=720545258599&spm=a2o71.search.list.ditem_0 ,720545258599 即为 itemId

  • 选择对应的票档,然后点击抢票即可

注意事项

  1. 提示 session 失效等,需要更换 cookie(不一定需要重新登录,重新进入大麦页面获取即可)
  2. 尽量不要多次重复尝试下订单,因为阿里系产品有风控,可能会限制账号或 ip 等。如果多次尝试导致出现账号无法登录的情况,切换个浏览器即可。
  3. 不支持选座
  4. FAIL_SYS_USER_VALIDATE 类似的提示可能当前浏览器已经被限制,目前需要切换个浏览器。

TODO

  1. 选座支持
  2. 其他平台支持

tickets's People

Contributors

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