https://github.com/nibble-4bits/codewars-solutions-scraper
A scraper that gets the solutions of all of the CodeWars katas you have solved
https://github.com/nibble-4bits/codewars-solutions-scraper
codewars katas scraper solutions
Last synced: 6 months ago
JSON representation
A scraper that gets the solutions of all of the CodeWars katas you have solved
- Host: GitHub
- URL: https://github.com/nibble-4bits/codewars-solutions-scraper
- Owner: nibble-4bits
- License: gpl-3.0
- Created: 2020-05-23T03:00:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T00:26:38.000Z (about 2 years ago)
- Last Synced: 2025-04-03T22:01:45.214Z (6 months ago)
- Topics: codewars, katas, scraper, solutions
- Language: JavaScript
- Size: 101 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Codewars Solutions Scraper
A command line tool that scrapes the solutions of all the CodeWars katas you have solved.
## Installation
To install the tool simply run the following command in a terminal:
```sh
npm install -g codewars-solutions-scraper
```And the command `codewars-solutions-scraper` will be installed globally in your system and ready to use.
## Usage
```sh
codewars-solutions-scraper [options]Options:
-V, --version output the version number
-c, --codewars use CodeWars login credentials
-g, --github use GitHub login credentials
-o, --output path to the output directory where solutions will be saved (default: /my_codewars_solutions)
-v, --verbose explain what is being done
-d, --debug run the scraper in debug mode (will make browser window appear to see what is being done)
-u, --username your CodeWars username
-e, --email your GitHub or CodeWars account email
-p, --password your GitHub or CodeWars account password
-h, --help display help for command
```- NOTE: `-c` and `-g` options are mutually exclusive.
## Examples
### Logging in using GitHub
If you want to log in to CodeWars using your GitHub credentials then run:
```sh
codewars-solutions-scraper -g -u -e -p
```Note that if you log in via GitHub, you will be prompted to enter a verification code sent to your GitHub account email.
The prompt will look like this:
`Please enter the verification code that was sent to :`
When you receive the verification code, just type it in and press Enter.
### Logging in using CodeWars
If you want to log in to CodeWars using your CodeWars credentials then run:
```sh
codewars-solutions-scraper -c -u -e -p
```### Specifying an output directory
If you want to save your solutions in a custom directory then use the -o, --output option:
```sh
codewars-solutions-scraper -g -o /path/to/custom/dir -u -e -p
```## Built With
- [Puppeteer](https://pptr.dev)
- [Commander](https://www.npmjs.com/package/commander)
- [Inquirer](https://www.npmjs.com/package/inquirer)
- [Chalk](https://www.npmjs.com/package/chalk)## License
[GPL-3.0 License](https://choosealicense.com/licenses/gpl-3.0/)