nicosearch
==========

The wrapper library for niconico search API with python.

# Install
```sh
pip install nicosearch
```

# Usage
```python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import codecs
sys.stdout = codecs.getwriter('utf_8')(sys.stdout)
sys.stdin  = codecs.getreader('utf_8')(sys.stdin)

from nicosearch import SearchRequest, SearchQueryBuilder
query = SearchQueryBuilder(u'MMD').build()
print SearchRequest(query).fetch().contents

# add search option
query = SearchQueryBuilder(u'閃乱カグラ', frm=0, size=10).build()
print SearchRequest(query).fetch().contents

# shortcut function
from nicosearch import search
print search(u'閃乱カグラ')
```

# Update PyPI command
```sh
python setup.py register sdist upload
```
