Giter VIP home page Giter VIP logo

fetch-leetcode-submission's Introduction

fetch-leetcode-submission

Help you to fetch your leetcode submissions.

The script runs on Chrome, which means you don't need any running environment. Just install the Chrome.

After runned it, the browser will download a formatted markdown file. This is a generated file demo.

How to use

  1. Using Chrome to open the leetcode, log in, then the redirect to the the submission page
  2. Open the Chrome Developer Tools console tab.
  3. Paste the code in index.js in console, then press the Enter in keyboard.
This a step by step screen recording. Only fetch the first page submissions.

fetch1

Need to know

  1. The script will retry when the request failed. You don't have stop the script when some request failed with 400. (My experience is that a same request may failed more than 50 times. Just retry, it will succeed finally)
  2. You can customize the markdown template, header or footer. You also can dump a JSON file.
  3. If you wanna have a try of the script, set onlyFetchFirstPage = true, will only fetch the first page submissions. If you wanna dump all, onlyFetchFirstPage = false
  4. A draft script.. Still need update.

fetch-leetcode-submission's People

Contributors

ravhb avatar

Stargazers

 avatar Wang, Xiao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.