@@ -23,19 +23,19 @@ section [Docker Image here](#docker-image).
2323
2424## How to use
2525
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.
2727
2828## Download from pypi.org
2929
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 `
3131depending on the configuration of your system.
3232
3333### Clone the repository
3434
3535Clone this repository:
3636
3737``` bash
38- git clone https://github.com/NeverMendel/leetcode-exports
38+ git clone https://github.com/NeverMendel/leetcode-export
3939```
4040
4141Install all the needed dependencies:
@@ -95,11 +95,14 @@ optional arguments:
9595
9696## Login
9797
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.
99100
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.
103106
104107You can insert the cookie string that you have just copied in the interactive menu (recommended) or you can pass it as a
105108program 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:
108111python leetcode-export --cookies {COOKIES}
109112```
110113
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.
112115
113116## Filename template arguments
114117
@@ -163,6 +166,7 @@ date_formatted: str
163166extension: str
164167```
165168
169+
166170Default submission filename
167171template: ` ${date_formatted} - ${status_display} - runtime ${runtime} - memory ${memory}.${extension} `
168172
@@ -174,4 +178,4 @@ The license of leetcode-cli is available [here](https://github.com/skygragon/lee
174178
175179## License
176180
177- [ Apache License 2.0 ] ( LICENSE )
181+ [ MIT License] ( LICENSE )
0 commit comments