leetcode-downloader icon indicating copy to clipboard operation
leetcode-downloader copied to clipboard

submissions.json is empty: [ ]

Open szotsaki opened this issue 7 years ago • 5 comments

After http_proxy= https_proxy= node fetch-submissions.js I got in the console:


Done fetching

but the resulting submissions.json (and zero-submissions.json) files contain only [].

The cookie is set and I have some submissions accepted on the web interface.

szotsaki avatar Mar 12 '18 08:03 szotsaki

This is due to the format of the response from 'https://leetcode.com/api/problems/all/' has been changed.

Remove the line: 30 in fetch-submissions.js, it will works.

.then(response => {
        const questions = response.data.stat_status_pairs;
        const promises = [];
        questions
            // .filter(question => question.status === 'ac')
            .forEach(question => {
                console.log(question);
                const id = question.stat.question_id;

james-jhang avatar Apr 14 '18 09:04 james-jhang

PRs are welcome 😄

yangshun avatar May 05 '18 19:05 yangshun

I am experiencing a similar issue. The process exits with following log -

...
...(stripped)...
...
Timeout for 4-median-of-two-sorted-arrays
Timeout for 3-longest-substring-without-repeating-characters
Timeout for 2-add-two-numbers
Timeout for 1-two-sum

Done fetching

The file submissions.json is empty.

shivansh avatar Aug 31 '18 12:08 shivansh

Yeah Its showing Timeout for every submissions

ashishpawar517 avatar May 12 '20 11:05 ashishpawar517

For me the solution was using https://github.com/bonfy/leetcode.

szotsaki avatar May 12 '20 11:05 szotsaki