Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.11 KB

README.md

File metadata and controls

47 lines (30 loc) · 1.11 KB

Codewars Downloader

A downloader for Codewars kata solutions.

Files

How to use

Setup

Clone the project repository:

git clone https://github.com/anthonyjatoba/codewars-downloader.git

Create a virtual environment and install the dependencies:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

This project relies on Selenium to fetch the solutions code, so it is necessary to install the driver for your browser. Refer to Selenium - Drivers for instructions on how to install the driver in your system.

Currently, we support Chrome and Firefox.

Configuration

All configuration is performed through the config.ini file. See below how to set up

[codewars]
username = <your username>
email = <your email>
password = <your password>

[settings]
scroll_delay = 2 # increase if not enough to load the pages
browser = <chrome|firefox>
directory = solutions # change to save in another directory

Running

Run with:

python3 codewars_downloader.py