Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 998 Bytes

README.md

File metadata and controls

55 lines (36 loc) · 998 Bytes

Codewars backup

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.