You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
反正步骤二的步骤是:
一次命令: python run.py -h 和 python run.py c
多次命令: python run.py r 根据这个报错提示,下载需要的依赖
(myenv) PS D:\project\ticket12306\12306> python run.py c
Traceback (most recent call last):
File "run.py", line 29, in <module>
from agency.cdn_utils import filterCdn
File "D:\project\ticket12306\12306\agency\cdn_utils.py", line 10, in <module>
from myUrllib.httpUtils import HTTPClient
File "D:\project\ticket12306\12306\myUrllib\httpUtils.py", line 8, in <module>
from fake_useragent import UserAgent
ModuleNotFoundError: No module named 'fake_useragent'
(myenv) PS D:\project\ticket12306\12306> pip install fake_useragent
ModuleNotFoundError: No module named 'fake_useragent'
这句话没搞错的话,就是说缺失fake_useragent这个依赖
刷新间隔: 随机(1-3S)
僵尸票关小黑屋时长: 5
下单接口: 2
下单模式: 1
预售踩点时间:12:59:57
**************************************************
cookie获取中
警告!!: RAIL_DEVICEID,RAIL_EXPIRATION的值为空,请手动打开12306官网可以获取headers-Cookies中的RAIL_DEVICEID,RAIL_EXPIRATION,填入配 置文件中
Traceback (most recent call last):
File "run.py", line 20, in <module>
select_ticket_info.select().main()
File "D:\project\ticket12306\12306\init\select_ticket_info.py", line 123, in main
self.call_login()
File "D:\project\ticket12306\12306\init\select_ticket_info.py", line 117, in call_login
self.login.go_login()
File "D:\project\ticket12306\12306\init\login.py", line 119, in go_login
if loginConf(self.session):
File "D:\project\ticket12306\12306\inter\LoginConf.py", line 12, in loginConf
loginConfRsp = session.httpClint.send(urls=loginConfUrl, data={})
File "D:\project\ticket12306\12306\myUrllib\httpUtils.py", line 185, in send
response.content.decode() if isinstance(response.content, bytes) else response.content)
File "D:\Anaconda3\envs\myenv\lib\json\__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "D:\Anaconda3\envs\myenv\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "D:\Anaconda3\envs\myenv\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
拜托大佬解决下,谢谢
截图&日志
环境信息
windows
python3.7.1
订票小助手版本 1.1.101
额外的备注
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
描述问题
我不明白,这句
打开12306官网可以获取headers-Cookies中的RAIL_DEVICEID,RAIL_EXPIRATION
这个我不知道在12306网页的那里,找不到;然后也不知道应该放在哪个文件的那里
在文末有个
TickerConfig.py
的句段,我猜一下是不是将RAIL_DEVICEID
,RAIL_EXPIRATION
放在TickerConfig.py
文件里。重现步骤
步骤一
步骤二
先看到
python run.py -h
能行,就使用python run.py r
报错(提醒装依赖)反正run程序一次,报缺失依赖,然后安装,这样重复了好几次
步骤三、
在TickerConfig.py将账号密码和车次·信息填写了,再使用
python run.py r
时,报错翻译了一下,大意是获取
headers-Cookies
中的RAIL_DEVICEID
和RAIL_EXPIRATION
的值,并将其填写到你的配置文件中。配置文件中没有填写正确的用户名和密码
拜托大佬解决下,谢谢
截图&日志
环境信息
额外的备注
The text was updated successfully, but these errors were encountered: