<commit_before>First, check you have Ruby 1.9 or greater installed,

    ruby -v
    
If you need to install or update Ruby [see the instructions at ruby-lang.org](https://www.ruby-lang.org/en/documentation/installation/).

Then install [morph command line](https://github.com/openaustralia/morph-cli) gem,

    gem install morph-cli

To run a scraper go to the directory you have your scraper code in and

    morph

It will run your local scraper on the morph.io server and stream the console output back to you. You can use this with any support scraper
language without the hassle of having to install lots of things.<commit_msg>Link to run locally page on getting started page<commit_after>There are two different ways you can run scrapers locally while you're writing
them.

Either you can use the morph command-line client or you can install the
development tools for your language of choice on your machine.

See the page
["Running scrapers on your own machine"](<%= run_locally_documentation_index_path %>)
for details on how to do this.
{'fraction_non_alphanumeric': 0.05640535372848948, 'fraction_numerical': 0.0019120458891013384, 'mean_word_length': 4.208955223880597, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6068916', 'n_tokens_mistral': 286, 'n_tokens_neox': 272, 'n_words': 147}