Skip to content

Commit f4c2021

Browse files
authored
Update README.md
1 parent 5a0f76e commit f4c2021

File tree

1 file changed

+51
-8
lines changed

1 file changed

+51
-8
lines changed

README.md

+51-8
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,73 @@
11
# LeetcodeDashboard
2+
![](./art.png)
23

4+
## Panel:
35

6+
**Submissions:** Your Daily Submission Record (including multiple Submission for same problem)
47

5-
## DataSource:
8+
**Accepted:** Your Daily Accepted Record (including multiple AC for same problem)
69

7-
### ProblemInfo:
10+
**Solved Today:** Your Daily AC of Easy, Medium, Hard problems. (Does not count multiple AC)
11+
12+
**Submission in last 7 days:** Including Multiple Submission On Same Problem
13+
14+
**Accepted in last 7 days:** Including Multiple AC On Same Problem
15+
16+
17+
## Configuration:
818

9-
Request:
19+
Configuration file:
1020

21+
```json
22+
{
23+
"Cookie": "",
24+
"CrawlIntervalSecond": 30,
25+
"DailyGoal": 30,
26+
"EasyScore": 1,
27+
"MediumScore": 5,
28+
"HardScore": 10,
29+
"StartTimeOfTheNewDay": 2
30+
}
1131
```
12-
https://leetcode.com/api/problems/all/
32+
33+
**Cookie:** Your leetcode account browser cookie
34+
35+
**CrawlIntervalSecond:** Automatic refresh interval
36+
37+
**DailyGoal/EasyScore/MediumScore/HardScore** Each kind of problem has a score, add up them to meet your daily goal score. (Does not count multiple submissions on the same problem in a day)
38+
39+
**StartTimeOfTheNewDay:** Time to reset your daily data. Range [0-23]. For example, 2 means new day session would start at 2 am.
40+
41+
## Run:
42+
43+
```bash
44+
git clone https://github.com/yangchenxi/LeetcodeDashboard
45+
46+
cd ./LeetcodeDashboard/bin/<yourOS>/<yourArc>
47+
48+
vim LCDashConfig.json #Config your cookie and other parameters
49+
50+
./lcdash LCDashConfig.json
1351
```
1452

53+
## DataSource:
54+
55+
### ProblemInfo:
56+
57+
https://leetcode.com/api/problems/all/
58+
1559

1660
### Submissions:
1761

1862
https://leetcode.com/submissions/#/1
1963

20-
Request(with cookie):
2164

22-
https://leetcode.com/api/submissions/?offset=0&limit=20&lastkey=
65+
(with cookie) https://leetcode.com/api/submissions/?offset=0&limit=20&lastkey=
2366

2467

2568

2669

27-
### TermUI library modification:
70+
## (For developer) TermUI library modification:
2871

2972
For barchart.go and stacked_barchart.go:
3073

@@ -35,4 +78,4 @@ Add the following in Draw()
3578
}
3679
```
3780

38-
https://github.com/gizak/termui/issues/245
81+
https://github.com/gizak/termui/issues/245

0 commit comments

Comments
 (0)