Skip to content

Commit

Permalink
Added run instructions for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fspv authored Jun 12, 2022
1 parent 191aedf commit 3cbbf04
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,38 @@ cd leetcode-anki
```

After that initialize and activate python virtualenv somewhere

Linux/MacOS
```
virtualenv -p python leetcode-anki
. leetcode-anki/bin/activate
```

Windows
```
python -m venv leetcode-anki
.\leetcode-anki\Scripts\activate.bat
```

Then initialize session id variable. You can get it directly from your browser (if you're using chrome, cookies can be found here chrome://settings/cookies/detail?site=leetcode.com)

Linux/Macos
```
export LEETCODE_SESSION_ID="yyy"
```

And finally run
Windows
```
set LEETCODE_SESSION_ID="yyy"
```

And finally run for Linux/MacOS
```
make generate
```
Or for Windows
```
python generate.py
```

You'll get `leetcode.apkg` file, which you can import directly to your anki app.

0 comments on commit 3cbbf04

Please sign in to comment.