<commit_before># kickass-search

Simple search API for Kickass Torrents.

[![build status](https://secure.travis-ci.org/sachanganesh/kickass-search.png)](http://travis-ci.org/sachanganesh/kickass-search)

## Installation

```
npm install kickass-search --save
```

## Usage

## Credits
[<NAME>](https://github.com/sachanganesh/)
<commit_msg>Updated readme and usage instructions<commit_after># kickass-search

Simple search API for Kickass Torrents

[![build status](https://secure.travis-ci.org/sachanganesh/kickass-search.png)](http://travis-ci.org/sachanganesh/kickass-search)

#### Submit a pull request!

## What it does
After called, the API returns an array of JSON objects that represent listed torrent files.

## Installation

```
sudo npm install kickass-search --save
```

## Usage

### To search by category only
	var kickass = require('kickass-search');
	var category = 'ebooks';
	var data;
	kickass.search(category).then(function (body) {
		data = body;
	});

### To search by query only
	var kickass = require('kickass-search');
	var query = 'catcher in the rye';
	var data;
	kickass.search(, query).then(function (body) {
		data = body;
	});

### To search by category and query
	var kickass = require('kickass-search');
	var category = 'ebooks';
	var query = 'catcher in the rye';
	var data;
	kickass.search(category).then(function (body) {
		data = body;
	});

### To search by newest torrents available
	var kickass = require('kickass-search');
	var data;
	kickass.search().then(function (body) {
		data = body;
	});

## Credits
[<NAME>](https://github.com/sachanganesh/)

{'fraction_non_alphanumeric': 0.15147705845380263, 'fraction_numerical': 0.0, 'mean_word_length': 4.547038327526132, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '5156565', 'n_tokens_mistral': 566, 'n_tokens_neox': 538, 'n_words': 140}