codewars
Scrape your finished katas to files and upload them to a github repo.
- create an
.env_secretfile 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_solutionscreate and activate a virtual environment (Windows version)
python -m venv venv
venv/Scripts/activateinstall requirements
pip install requirements.txtrun the script
python main.pyThere is a prepared gihub action, that will automatically download new solutions every night. Just set the right environment variables as repository secrets.
