@@ -25,10 +25,11 @@ section [Docker Image here](#docker-image).
2525
2626To use ` leetcode-export ` you can either download it from pypi.org or you can clone this repository.
2727
28- ## Download from pypi.org
28+ ### Download from pypi.org
2929
30- Run ` pip install leetcode-export ` to download it and install all the needed dependencies. You might need to use ` pip3 `
31- depending on the configuration of your system.
30+ Run ` pip install leetcode-export ` to install leetcode-export, you might have to use ` pip3 ` of your system. To use the
31+ script run ` leetcode-export ` , optionally supply the script arguments, for more instructions read the
32+ section [ script arguments here] ( #script-arguments ) .
3233
3334### Clone the repository
3435
@@ -44,14 +45,14 @@ Install all the needed dependencies:
4445pip install -r requirements.txt
4546```
4647
47- Now you can either install it or just execute it:
48+ You can either install leetcode-export in your system or just execute it:
4849
49- - To install leetcode-export in your system :
50+ - To install it run :
5051 ``` bash
5152 python setup.py install
5253 ```
5354
54- - To run the project without installing it:
55+ - To execute the script without installing it:
5556 ` ` ` bash
5657 python -m leetcode_export --folder submissions
5758 ` ` `
@@ -70,6 +71,25 @@ Download all your LeetCode submission in the current folder:
7071docker run -it -v $( pwd) :/usr/app/out --rm nevermendel/leetcode-export
7172` ` `
7273
74+ # # Login
75+
76+ To download your submissions you need to log in your LeetCode account by providing the cookies. To log in using cookies,
77+ you need to get them from a session where you are already logged in.
78+
79+ ** Steps required** :
80+
81+ - Login in your LeetCode account in your browser
82+ - Open the browser' s Dev Tool
83+ - Click on the Network tab
84+ - Copy the cookie header that can be found under Request Headers in any leetcode.com request.
85+
86+ You can insert the cookie string that you have just copied in the interactive menu (recommended) or you can pass it as a
87+ program argument when lunching the script, like in the following example:
88+
89+ ```bash
90+ python leetcode-export --cookies {COOKIES}
91+ ```
92+
7393## Script arguments
7494
7595The script accepts the following arguments:
@@ -93,24 +113,6 @@ optional arguments:
93113 Submission filename format
94114```
95115
96- ## Login
97-
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.
100-
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.
106-
107- You can insert the cookie string that you have just copied in the interactive menu (recommended) or you can pass it as a
108- program argument when lunching the script, like in the following example:
109-
110- ```bash
111- python leetcode-export --cookies {COOKIES}
112- ```
113-
114116Using the interactive menu is preferred as it will avoid storing your cookies in the command history.
115117
116118## Filename template arguments
@@ -166,7 +168,6 @@ date_formatted: str
166168extension: str
167169```
168170
169-
170171Default submission filename
171172template: `${date_formatted} - ${status_display} - runtime ${runtime} - memory ${memory}.${extension}`
172173
0 commit comments