codewars
Scrape your finished katas to files and upload them to a github repo.
- 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.
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
There is a prepared gihub action, that will automatically download new solutions every night. Just set the right environment variables as repository secrets.