File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ codewars] ( http://codewars.com )
4
4
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.
You can’t perform that action at this time.
0 commit comments