<commit_before>jquery.socialstats
==================

jQuery Socialstats allows you to easily get comments, likes and tweets from a given URL.<commit_msg>README.md included<commit_after>## jQuery Socialstats

jQuery Socialstats allows you to easily get plain text comments, likes and tweets number from a given URL.


## Installation

Simple put this code after the jQuery library:

```html
<script src="/path/to/jquery.socialstats.js"></script>
```

## Usage

Use data attributes to define which data do you want to get for each element:

```html
<span class="socialstats" data-network="facebook"></span> <span class="socialstats" data-network="facebook" data-action="comments"></span> <span class="socialstats" data-network="twitter"></span>
```

And then, initialize the plugin:

```javascript
$(".socialstats").socialstats();
```

{'fraction_non_alphanumeric': 0.145083932853717, 'fraction_numerical': 0.0, 'mean_word_length': 5.958333333333333, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2381003', 'n_tokens_mistral': 229, 'n_tokens_neox': 217, 'n_words': 83}