@@ -23,19 +23,19 @@ section [Docker Image here](#docker-image).
23
23
24
24
## How to use
25
25
26
- To use it locally you can either download it from pypi.org or you can clone this repository.
26
+ To use ` leetcode-export ` you can either download it from pypi.org or you can clone this repository.
27
27
28
28
## Download from pypi.org
29
29
30
- Execute ` pip install leetcode-export ` to download it and install all the needed dependencies. You might need to use ` pip3 `
30
+ Run ` pip install leetcode-export ` to download it and install all the needed dependencies. You might need to use ` pip3 `
31
31
depending on the configuration of your system.
32
32
33
33
### Clone the repository
34
34
35
35
Clone this repository:
36
36
37
37
``` bash
38
- git clone https://github.com/NeverMendel/leetcode-exports
38
+ git clone https://github.com/NeverMendel/leetcode-export
39
39
```
40
40
41
41
Install all the needed dependencies:
@@ -95,11 +95,14 @@ optional arguments:
95
95
96
96
## Login
97
97
98
- To download your submissions you need to log in your LeetCode account by providing the cookies.
98
+ To download your submissions you need to log in your LeetCode account by providing the cookies. To log in using cookies,
99
+ you need to get them from a session where you are already logged in.
99
100
100
- To log in using cookies, you need to get them from a session where you are already logged in. Login in your LeetCode
101
- account in your browser, open the browser's Dev Tool, click on the Network tab and copy the cookie header that is sent
102
- when you visit any leetcode webpage.
101
+ **Steps required**:
102
+ - Login in your LeetCode account in your browser
103
+ - Open the browser's Dev Tool
104
+ - Click on the Network tab
105
+ - Copy the cookie header that can be found under Request Headers in any leetcode.com request.
103
106
104
107
You can insert the cookie string that you have just copied in the interactive menu (recommended) or you can pass it as a
105
108
program argument when lunching the script, like in the following example:
@@ -108,7 +111,7 @@ program argument when lunching the script, like in the following example:
108
111
python leetcode-export --cookies {COOKIES}
109
112
```
110
113
111
- Using the interactive menu is to be preferred as it will avoid storing your cookies in the command history.
114
+ Using the interactive menu is preferred as it will avoid storing your cookies in the command history.
112
115
113
116
## Filename template arguments
114
117
@@ -163,6 +166,7 @@ date_formatted: str
163
166
extension: str
164
167
```
165
168
169
+
166
170
Default submission filename
167
171
template: ` ${date_formatted} - ${status_display} - runtime ${runtime} - memory ${memory}.${extension} `
168
172
@@ -174,4 +178,4 @@ The license of leetcode-cli is available [here](https://github.com/skygragon/lee
174
178
175
179
## License
176
180
177
- [ Apache License 2.0 ] ( LICENSE )
181
+ [ MIT License] ( LICENSE )
0 commit comments