Skip to content

Codewars API at the moment does not have a functionality to fetch solutions to coding challanges, this script is meant to have that ability

Notifications You must be signed in to change notification settings

0Reab/Codewars_Solutions_Spider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Codewars API at the moment does not have a functionality to fetch solutions to coding challanges, this script is meant to have that ability

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages