leetcode-downloader
leetcode-downloader copied to clipboard
submissions.json is empty: [ ]
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.
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;
PRs are welcome 😄
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.
Yeah Its showing Timeout for every submissions
For me the solution was using https://github.com/bonfy/leetcode.