https://github.com/ymizushi/nicosearch


Keywords
search, niconico, library
License
MIT
Install
pip install nicosearch==0.2.4

Documentation

nicosearch

Build Status

The wrapper library for niconico search API with python.

Install

pip install nicosearch # Python 2.7.x or later
pip3 install nicosearch # Python 3.4.x or later

Usage

#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

python setup.py register sdist upload