Code Monkey home page Code Monkey logo

autoticket's Introduction

版本更新

2022-1-17 可以抢大麦和保利的票,只提供抢一张票的功能。大麦只能抢需要选座的演出

配置

image 抢大麦的票需要nodejs环境,因为要通过js代码加密sign

待更新

完善获取代理IP方法

当前版本如需获取代理ip请重写方法


保利

抢票界面演出信息接口

https://platformpcgateway.polyt.cn/api/1.0/show/getShowInfoDetail

返回所有位置信息

https://cdn.polyt.cn/seat/h5/57810_57606.json?callback=jsonpCallback

返回所有可购买作为Id

https://platformpcgateway.polyt.cn/api/1.0/seat/getSellSeatList

无论是移动端还是pc端的接口都有限流,每个线程抢票间隔为1.5s,单个IP请求太频繁会被禁IP


大麦

抢大麦的票需要nodejs环境,因为要通过js代码加密sign

获取界面演出信息接口

https://detail.damai.cn/subpage?itemId=664009496699&apiVersion=2.0&dmChannel=pc@damai_pc&bizCode=ali.china.damai&scenario=itemsku&dataType=&dataId=&privilegeActId=&callback=__jp0

获取区域分组信息接口

mtop.damai.wireless.project.getb2b2careainfo

查询座位信息

当区域只有一个时:

mtop.damai.wireless.seat.queryseatstatus或

当区域有多个时:

①mtop.damai.wireless.seat.queryperformseatstatus,返回值中2代表有座,8代表无座(X, 8)代表连续X个为无座

https://sseat.damai.cn/xuanzuo/io/110100/1936836267/10000072/6028214.json,/城市id/xxx/xxx/groupid(区域分组id),/xxx/xxx/在mtop.damai.wireless.seat.queryseatstatus接口返回值中找

pfId的计算在g.alcdn.com/damai/pc-seat/0.0.5/pc.js 的getAreaInfo方法中

sign的加密算法在g.alcdn.com/damai/pc-seat/0.0.5/vendor.js的26813行左右, 其中参数的token值使用正则从cookie提取,代码在vendor.js的26500行左右,目前已将加密js方法复制到本地执行

目前来看,以下两值不同演出下均可通用,至少可以维持很长一段时间有效

umidToken的加密算法在g.alcdn.com/AWSC/WebUMID/1.88.4/um.js里,也可在本地Local Storage内查找_um_cn_umsvtn值

ua的加密算法在g.alcdn.com/AWSC/uab/1.140.0/1.88.4/collina.js,或者调试中断点获取

大麦接口貌似没有访问限制, Cookie的有效期不长,如果调用接口失败很大可能是Cookie过期了


autoticket's People

Contributors

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