Download your accepted submissions and questions from LeetCode!
This repo refers to yangshun/leetcode-downloader.
$ yarn
$ cp config-tmpl.json config.json
Do the following steps to get your cookie at LeetCode
- Open Chrome and login leetcode.com.
- Open developer tools and network tab.
- Open one request sending to LeetCode and copy the cookie.
- Paste it into
config.json
.
# fetch the latest accepted submission of each question
$ node fetchSubmission.js
# fetch the description of each question
$ node fetchQuestion.js
# merge questions and accepted submissions
$ node mergeQA.js
MIT