Skip to content

Commit b5be7e9

Browse files
authored
Update README.md
1 parent a23f1c1 commit b5be7e9

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,41 @@
1-
# This repository is in progress
1+
# Leetcode CLI
2+
Get your Leetcode account into the terminal. Search for problems, solve them and submit.
3+
4+
## Installation
5+
#### Windows
6+
```
7+
pip install pyleetcode-cli
8+
```
9+
10+
#### Linux
11+
```
12+
sudo pip install pyleetcode-cli
13+
```
14+
15+
## Configuration
16+
For this software to work you need to be logged into your Leetcode account. Your Leetcode `session_id` (can be found in cookies) is required for client initialization.
17+
#### Chrome / Edge
18+
``` chrome://settings/cookies/detail?site=leetcode.com ```
19+
After you get your `session_id` you can either paste it into the right place in `config.yaml` file or use the CLI for the configuration:
20+
```
21+
leet config session_id YOUR_SESSION_ID
22+
```
23+
24+
## Usage
25+
```
26+
Leet CLI
27+
28+
options:
29+
-h, --help show this help message and exit
30+
-v, --version show program's version number and exit
31+
32+
Commands:
33+
{config,stats,list,problem,today,submission,submit}
34+
config Configure the CLI
35+
stats Display statistics
36+
list Display problem list
37+
problem Display problem
38+
today Display today's problem.
39+
submission Download submission code
40+
submit Submit code answer
41+
```

0 commit comments

Comments
 (0)