Content-Length: 279551 | pFad | http://github.com/fspv/python-leetcode/tree/375e16928cf63c19d7be2e5d652794498ab1df83

94 GitHub - fspv/python-leetcode at 375e16928cf63c19d7be2e5d652794498ab1df83
Skip to content

fspv/python-leetcode

Repository files navigation

Leetcode API implementation.

build

This implements methods that are available publicly for leetcode. There is already an implementation of them in form of CLI [1], but it has a list of disadvantages.

  1. It is written in JS

  2. Even for JS in order to reuse it you have to invoke it via CLI

  3. It is not supported very well, so authentication doesn't work anymore

So I have decided to create my own implementation and here is it.

Using the swagger file you'll be able to generate the code for any language you like and start using leetcode API directly from your code.

Just keep in mind that swagger doesn't really support cookie auth, which is needed in order to use LC API. If you use python you can just use the generated code from this repo. Otherwise you'll have to implement something like fix_cookies.patch for your target language.

You can find examples of usage in example.py

Autogenerated by swagger documentation can be found here.

[1] https://github.com/skygragon/leetcode-cli

About

python client for leetcode api

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/fspv/python-leetcode/tree/375e16928cf63c19d7be2e5d652794498ab1df83

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy