Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

输入出发日期的时候报错 #2

Open
NBInfo opened this issue Dec 26, 2018 · 1 comment
Open

输入出发日期的时候报错 #2

NBInfo opened this issue Dec 26, 2018 · 1 comment

Comments

@NBInfo
Copy link

NBInfo commented Dec 26, 2018

Traceback (most recent call last):
File "test_12306_git.py", line 396, in
train_info = output_info()
File "test_12306_git.py", line 48, in output_info
results = getList()
File "test_12306_git.py", line 42, in getList
results = html.json()
File "C:\Users\13716\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\13716\AppData\Local\Programs\Python\Python37-32\lib\json_init_.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\13716\AppData\Local\Programs\Python\Python37-32\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\13716\AppData\Local\Programs\Python\Python37-32\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@NBInfo
Copy link
Author

NBInfo commented Dec 26, 2018

https://kyfw.12306.cn/otn/leftTicket/query?leftTicketDTO.train_date=2018-12-26&leftTicketDTO.from_station=BJP&leftTicketDTO.to_station=HBB&purpose_codes=ADULT
200
Traceback (most recent call last):
File "test_12306_git.py", line 396, in
train_info = output_info()
File "test_12306_git.py", line 48, in output_info
results = getList()
File "test_12306_git.py", line 42, in getList
results = html.json()
File "C:\Users\13716\AppData\Local\Programs\Python\Python37-32\lib\site-packages\requests\models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\13716\AppData\Local\Programs\Python\Python37-32\lib\json_init_.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\13716\AppData\Local\Programs\Python\Python37-32\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\13716\AppData\Local\Programs\Python\Python37-32\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant