GithubHelp home page GithubHelp logo

nibble-4bits / codewars-solutions-scraper Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 103 KB

A scraper that gets the solutions of all of the CodeWars katas you have solved

License: GNU General Public License v3.0

JavaScript 100.00%
codewars solutions scraper katas

codewars-solutions-scraper's Introduction

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:

npm install -g codewars-solutions-scraper

And the command codewars-solutions-scraper will be installed globally in your system and ready to use.

Usage

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>        path to the output directory where solutions will be saved (default: <YOUR_HOME_DIRECTORY>/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 <username>  your CodeWars username
  -e, --email <email>        your GitHub or CodeWars account email
  -p, --password <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:

codewars-solutions-scraper -g -u <YOUR_CODEWARS_USERNAME> -e <YOUR_GITHUB_EMAIL> -p <YOUR_GITHUB_PASSWORD>

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 <YOUR_GITHUB_EMAIL>:

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:

codewars-solutions-scraper -c -u <YOUR_CODEWARS_USERNAME> -e <YOUR_CODEWARS_EMAIL> -p <YOUR_CODEWARS_PASSWORD>

Specifying an output directory

If you want to save your solutions in a custom directory then use the -o, --output option:

codewars-solutions-scraper -g -o /path/to/custom/dir -u <YOUR_CODEWARS_USERNAME> -e <YOUR_GITHUB_EMAIL> -p <YOUR_GITHUB_PASSWORD>

Built With

License

GPL-3.0 License

codewars-solutions-scraper's People

Contributors

dependabot[bot] avatar nibble-4bits avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

blefev mazayw

codewars-solutions-scraper's Issues

Change to Unix line endings

Package does not run on Linux due to dos line endings. Should work on Windows and Linux if line endings are changed to Unix style

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.