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

Leetcode API Seems to be changed #3

Open
tinylic opened this issue Apr 22, 2017 · 2 comments
Open

Leetcode API Seems to be changed #3

tinylic opened this issue Apr 22, 2017 · 2 comments

Comments

@tinylic
Copy link

tinylic commented Apr 22, 2017

Leetcode API seems to be changed again. We cannot access the whole submission history by simply attaching the page number after 'https://leetcode.com/api/submissions/'.

Could you please have a look at this?

@lxyjscz
Copy link
Contributor

lxyjscz commented Apr 22, 2017

fixed in the next pr

@szotsaki
Copy link

It seems it's changed again:

Password:
Check page 1
Traceback (most recent call last):
  File "leetcodeDownloader.py", line 67, in <module>
    checkSubmissions(sys.argv[1], password)
  File "leetcodeDownloader.py", line 47, in checkSubmissions
    trList = r.json()['submissions_dump']
  File "/usr/lib/python2.7/site-packages/requests/models.py", line 892, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib64/python2.7/site-packages/simplejson/__init__.py", line 518, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib64/python2.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.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

3 participants