cwAutoSolve
★1
Selenium web automation tool to rank up automatically on Code Wars.
Python
Code Wars Auto Solver
A Python script to automate solving coding challenges on CodeWars using Selenium and OpenAI's API.
Prerequisites
- Python 3.x
- Git
- Chromium Browser
- ChromeDriver (Compatible with your Chrome version)
- OpenAI API Key
Installation
- Clone the Repository
git clone https://github.com/code-zm/cwAutoSolver.git
cd cwAutoSolver
- Create and Activate a Virtual Environment (optional but recommended)
python3 -m venv venv
source venv/bin/activate # On Windows, use 'venv\Scripts\activate'
- Install the Requirements
pip install -r requirements.txt
Configuration
Before running the script, you need to set up the config.txt file with your personal details and API key.
- Update the 'config.txt' File
Example 'config.txt' file:
API_KEY="sk-1234567890abcdef1234567890abcdef"
EMAIL="[email protected]"
PASSWORD="your_codewars_password"
CHROMEDRIVER_PATH="/path/to/chromedriver"
Running the Script
Once you have installed the dependencies and set up the configuration file, you can run the script:
python codewarsDriver.py