Skip to content

As786sarex/leetcode-solution-scraper

Repository files navigation

Leetcode Solution scrapper

Node.js CI

This repository uses Github Action as a job executor to scrape all of your solved problems.


How to setup for scraping

  • Clone this repository.
  • Delete all files except one in solutions folder.
  • Add your specific LEETCODE_SESSION key in SESSION_COOKIE variable.
  • As of now you have to populate ALL_SOLUTIONS variable to url of solved problems. Urls will be in the form of https://leetcode.com/problems/{problem-slag}. To get all your solved problem follow this instruction.
  • Create a remote repository in Github & set following Setings > Secrets
    • SSH to your git ssh private key .ssh/id_rsa.
    • KNOWN_HOSTS to your .ssh/known_hosts.
    • SSH_URL to you remote repository ssh url.
    • To know how to setup ssh click here
  • commit & push your code to remote repository.
  • Manually run Action from Actions > Nodejs CI.
  • Done.

Here's some screenshot of successfully executed Github Actions job.

Build Steps Build Steps

About

This application scrapes all your Leetcode latest solutions into one place.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published