gzldc / 12306 Goto Github PK
View Code? Open in Web Editor NEW12306抢票脚本
License: MIT License
12306抢票脚本
License: MIT License
预售踩点时间:14:29:59
cookie获取中
tk失效 请更新
TK的有效期是多久啊?我预售的抢票老是失败
报错信息,求助
Traceback (most recent call last):
File "run.py", line 22, in
select_ticket_info.select().main()
File "C:\Users\Administrator\Downloads\Compressed\12306-master\init\select_ticket_info.py", line 115, in main
l.reqLiftTicketInit()
File "C:\Users\Administrator\Downloads\Compressed\12306-master\inter\LiftTicketInit.py", line 18, in reqLiftTicketInit
matchObj = re.search('var CLeftTicketUrl = '(.*)'', result, re.M|re.I);
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\re.py", line 183, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object
感谢大佬让我回家~
技术改变生活
错误信息:提交候补订单失败,截止兑现时间已超过开车时间前120分钟!
请问各位大佬,为什么我在运行过程中,总是提示这个:url: /passport/web/login返回参数为空, 接口状态码: 302。这究竟是什么问题?还望各位大佬拔冗指点小弟迷津。
请问这个怎么解决呢
运行 :>python run.py t
显示:邮件配置有误'ascii' codec can't encode characters in position 1-3: ordinal not in range(128)
已下发 Server酱 微信通知, 请查收
邮箱 pop3/SMTP 和TMTP/SMTP 都试过了 要报错
方糖可以接收
连续查询几个小时后报错,疑似和tk过期有关
empty range for randrange()
目前我观察到tk过期非常频繁,平均只能查询几十分钟左右,希望能改进登录方式
运行一段时间后,报错
empty range for randrange() (4,4, 0),哪位老哥解决了
深圳-武汉 车次坐席查询为空,查询url: https://kyfw.12306.cn/otn/leftTicket/queryO?leftTicketDTO.train_date=2021-02-08&leftTicketDTO.from_station=SZQ&leftTicketDTO.to_station=WHN&purpose_codes=ADULT, 可以手动查询是否有票
正在第41次查询 停留时间:0.19 乘车日期: 2021-02-08 车次:所有车次 下单无票 无候补机会 耗时:216.4 120.226.55.151
url: /otn/login/checkUser返回参数为空, 接口状态码: 302
这个报错是怎么回事?感谢解答
能指定哪趟高铁的吗?
现在还能用吗?
验证码校验失败,是否跟添加了滑动的验证码有关
我的操作流程:
tk已经失效,但是程序一直在正常输出,无法感知tk已经失效,如果刷到有票是无法下单的。
可以加入定时校验tk有效性功能,tk失效及时报错。
我今天试了下 可能也就几分钟tk值就失效了 这样的话对抢票帮助不大哦
查询到有余票,尝试提交订单
url: /otn/confirmPassenger/getPassengerDTOs返回参数为空, 接口状态码: 302
url: /otn/confirmPassenger/getPassengerDTOs返回参数为空, 接口状态码: 302
用户未登录
联系人不在列表中,请查证后添加!!
可是我联系人填写的没问题啊
可以查询到票,但是登录失败,所以也提交不了
Using cached https://mirrors.aliyun.com/pypi/packages/46/1c/395a83ee7b2d2ad7a05b453872053d41449564477c81dc356f720b16eac4/sklearn-0.0.post12.tar.gz (2.6 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
rather than 'sklearn' for pip commands.
Here is how to fix this error in the main use cases:
- use 'pip install scikit-learn' rather than 'pip install sklearn'
- replace 'sklearn' by 'scikit-learn' in your pip requirements files
(requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
- if the 'sklearn' package is used by one of your dependencies,
it would be great if you take some time to track which package uses
'sklearn' instead of 'scikit-learn' and report it to their issue tracker
- as a last resort, set the environment variable
SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error
More information is available at
https://github.com/scikit-learn/sklearn-pypi-package
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
能不能升级一下功能,自动抓取tk。使用密码用户名登录模式。这样就不影响,刷票了。tk失效了,票一下就没有了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.