Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.19 KB

File metadata and controls

56 lines (37 loc) · 1.19 KB

Codewars backup

Periodic solutions update

codewars
Scrape your finished katas to files and upload them to a github repo.

Local Installation

  • create an .env_secret file with your codewars token

Your token may be found when inspecting the request to the corewars site after login. You may use browser tools for that.

drawing

contents of the file

CW_COOKIE=...

clone the repository

git clone https://github.com/JakubDotPy/codewars_solutions.git 

cd into the repository

cd codewars_solutions

create and activate a virtual environment (Windows version)

python -m venv venv
venv/Scripts/activate

install requirements

pip install requirements.txt

run the script

python main.py

Github actions

There is a prepared gihub action, that will automatically download new solutions every night. Just set the right environment variables as repository secrets.