Skip to content

Commit e3ebb1e

Browse files
committed
updated README.md
1 parent ab72e6e commit e3ebb1e

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,55 @@
22

33
[codewars](http://codewars.com)
44
Scrape your finished katas to files and upload them to a github repo.
5+
6+
### Local Installation
7+
8+
- modify the `.env_public` file with your codewars username
9+
- create an `.env_secret` file with your codewars token
10+
11+
Your token may be found when inspecting the request to the corewars site after login.
12+
You may use browser tools for that.
13+
14+
<img src="imgs/img.png" alt="drawing" width="400"/>
15+
16+
_contents of the file_
17+
18+
```txt
19+
CW_COOKIE=...
20+
```
21+
22+
clone the repository
23+
24+
```shell
25+
git clone https://github.com/JakubDotPy/codewars_solutions.git
26+
```
27+
28+
`cd` into the repository
29+
30+
```shell
31+
cd codewars_solutions
32+
```
33+
34+
create and activate a virtual environment (Windows version)
35+
36+
```shell
37+
python -m venv venv
38+
venv/Scripts/activate
39+
```
40+
41+
install requirements
42+
43+
```shell
44+
pip install requirements.txt
45+
```
46+
47+
run the script
48+
49+
```shell
50+
python main.py
51+
```
52+
53+
### Github actions
54+
55+
There is a prepared gihub action, that will automatically download new solutions every night.
56+
Just set the right environment variables as repository secrets.

imgs/img.png

141 KB
Loading

0 commit comments

Comments
 (0)