Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.1 KB

File metadata and controls

34 lines (23 loc) · 1.1 KB

Codewars_Solutions_Spider

Codewars API at the moment does not have a functionality to fetch solutions to coding challanges solutions.

Desciption

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.

Output

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.

Features

  • Rate limited HTTPS via python requests to prevent spam.
  • Sanitized and organized file and directory names.

Usage

  1. pip install -r requrements.txt
  2. Change the user variable in codewars.py to your username.
  3. Put cookie from request header into raw variable as string and run format_cookie.py
  4. Run codewars.py