<commit_before># stories-crawler

[![Build Status](https://travis-ci.org/olivif/stories-crawler.svg?branch=master)](https://travis-ci.org/olivif/stories-crawler)

A small crawler for news websites

### Getting started

Install the dependencies 
```
npm install crawlerx
npm install js2xmlparser
```

Run the code
``` 
node lib/index.js
```<commit_msg>Adding dev dependencies and test instructions<commit_after># stories-crawler

[![Build Status](https://travis-ci.org/olivif/stories-crawler.svg?branch=master)](https://travis-ci.org/olivif/stories-crawler)

A small crawler for news websites

### Getting started

Install the dependencies 
```
npm install crawlerx
npm install js2xmlparser
```

Install the dev dependencies 
```
npm install mocha
npm install should
```

How to run the code
``` 
node lib/index.js
```

How to run the tests
``` 
npm test
```
{'fraction_non_alphanumeric': 0.1306884480746791, 'fraction_numerical': 0.002333722287047841, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4166285', 'n_tokens_mistral': 307, 'n_tokens_neox': 288, 'n_words': 76}