Codewars API at the moment does not have a functionality to fetch solutions to coding challanges solutions.
Headless selenium web browsing to fetch dynamically loaded content and then parse it via beatiful soup.
Completes missing API feature to fetch your codewars challenge solutions.
My solutions output for example.
https://github.com/0Reab/Codewars_solutions
Organized files in directories by challenge difficulty (or special Retired directory):
/7_kyu/fibbonaci_sequence.py/8_kyu/sum_array.py
Each file will have:
- Name same as challenge name with appropriate file extension for the language.
- prepended multi-line comment with the challenge description.
- Your solution code.
- Rate limited HTTPS via python
requeststo prevent spam. - Sanitized and organized file and directory names.
pip install -r requrements.txt- Change the
uservariable incodewars.pyto your username. - Put cookie from request header into
rawvariable as string and runformat_cookie.py - Run
codewars.py