andrewchenk / leetcode-downloader

leetcode downloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LeetCode Downloader

Download your accepted submissions and questions from LeetCode!

This repo refers to yangshun/leetcode-downloader.

Start

$ yarn
$ cp config-tmpl.json config.json

Do the following steps to get your cookie at LeetCode

  1. Open Chrome and login leetcode.com.
  2. Open developer tools and network tab.
  3. Open one request sending to LeetCode and copy the cookie.
  4. Paste it into config.json.

GitHub Logo

# 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

License

MIT

About

leetcode downloader

License:MIT License


Languages

Language:JavaScript 100.0%