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

json.decoder.JSONDecodeError #11

Open
Sicmatr1x opened this issue Mar 14, 2019 · 0 comments
Open

json.decoder.JSONDecodeError #11

Sicmatr1x opened this issue Mar 14, 2019 · 0 comments

Comments

@Sicmatr1x
Copy link

https://pub.alimama.com/report/getTbkPaymentDetails.json?startTime=2018-12-14&endTime=2019-03-13&payStatus=&queryType=1&toPage=1&perPageSize=20
Traceback (most recent call last):
  File "C:/Users/GUOJO/PycharmProjects/LearnSpider/src/auto-login-alimama/alimama.py", line 59, in <module>
    sp.get_taoke_order_list()
  File "C:/Users/GUOJO/PycharmProjects/LearnSpider/src/auto-login-alimama/alimama.py", line 51, in get_taoke_order_list
    data = json.loads(web_data.text)
  File "C:\Users\GUOJO\AppData\Local\Programs\Python\Python36\lib\json\__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "C:\Users\GUOJO\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\GUOJO\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 2)
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