Skip to content

Commit 43f80c2

Browse files
authored
Update README.md
1 parent 76d0b41 commit 43f80c2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

β€ŽREADME.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# fetch-leetcode-submission
2+
Help you to fetch your leetcode submissions.
3+
4+
The script runs on Chrome, which means you don't need any running environment. Just install the Chrome.
5+
6+
After runned it, the browser will download a formatted markdown file. This is a generated file [**demo**](https://github.com/duteng/leetcode/blob/master/README.md).
7+
8+
## How to use
9+
1. Using Chrome to open the [leetcode](http://leetcode.com), log in, then the redirect to the the [submission page](https://leetcode.com/submissions/#/1)
10+
2. Open the Chrome Developer Tools console tab.
11+
3. Paste the code in index.js in console, then press the Enter in keyboard.
12+
13+
![fetch1](https://user-images.githubusercontent.com/1821507/48863702-336f9d00-ee05-11e8-9958-3c98a37568f0.gif)
14+
15+
## Need to know
16+
1. The script will retry when the request failed. You don't have stop the script when some request failed with 400.
17+
(My experience is that a same request may failed more than 50 times. Just retry, it will succeed finally)
18+
2. You can customize the markdown template, header or footer. You also can dump a JSON file.
19+
3. If you wanna have a try, set `onlyFetchFirstPage = true`. If you wanna dump all, `onlyFetchFirstPage = false`
20+
4. A draft script.. Still need update.

0 commit comments

Comments
 (0)