-
Notifications
You must be signed in to change notification settings - Fork 279
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
火车票查询报错: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #29
Comments
也遇到这样的问题了 |
simplejson也试了 一样挂 |
ubuntu 16.04 |
same,too |
是因为火车站的地址变了,而且不止这一个问题,即使换了地址,返回的jason有问题 json返回: 但是get回来的status是false,导致下面的data不显示,怎么办 |
查询返回的地址变了,并且返回的json数据也变了。
json返回的数据:
应返回的字典为: 火车时刻信息如下: |
requests加请求头 |
现在查询上海到北京的列车,返回的json字符串是这样的,不知道该怎么改代码。那一串加密字符串该怎么弄呢? |
Python 3.5.2 和 Python 3.6.0 都试了,都报错:
The text was updated successfully, but these errors were encountered: