You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This implements methods that are available publicly for leetcode.
6
-
There is already an implementation of them in form of CLI [1], but
7
-
it has a list of disadvantages.
8
-
9
-
10
-
1. It is written in JS
11
-
12
-
2. Even for JS in order to reuse it you have to invoke it via CLI
13
-
14
-
3. It is not supported very well, so authentication doesn't work anymore
15
-
16
-
17
-
So I have decided to create my own implementation and here is it.
18
-
19
-
20
-
Using the swagger file you'll be able to generate the code for any language
21
-
you like and start using leetcode API directly from your code.
3
+
# Leetcode API implementation
22
4
5
+
This repo contains a python client to access all known so far methods of Leetcode API.
23
6
24
-
Just keep in mind that swagger doesn't really support cookie auth,
25
-
which is needed in order to use LC API. If you use python you can
26
-
just use the generated code from this repo. Otherwise you'll have to
27
-
implement something like `fix_cookies.patch` for your target language.
7
+
The code is autogenerated by swagger. Swagger reference can be found here: [https://github.com/prius/leetcode-swagger](https://github.com/prius/leetcode-swagger)
0 commit comments