Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Translating comments on Nico Nico Douga (ニコニコ動画).

Project Description

Installation

You can install it using pip:

$ pip install niconico-translator

Aliasing msg.nicovideo.jp to localhost

To make the translator to intercept comments from Nico Nico comment server, you have to alias Nico Nico comment server domains (msg.nicovideo.jp, nmsg.nicovideo.jp) to your localhost (127.0.0.1). Open your hosts file using text editor (you probably need administrator permission), and then add the following line:

127.0.0.1    msg.nicovideo.jp nmsg.nicovideo.jp

Proxy server

The translator behaves as a proxy server, so it has to be running while you watch Nico Nico videos. You can invoke the proxy server using CLI (you probably need administrator permission to listen 80 port):

$ niconico-translator

You can terminate the server by pressing Ctrl-C.

It can optionally take the target language which is a two-letter e.g. en, ko:

$ niconico-translator --language ko

Advanced use

If you have a WSGI fetish, you can utilize it as a WSGI application. It’s actually an ordinary WSGI application, you can serve it using your favorite WSGI server e.g. Gunicorn:

$ gunicorn "niconico_translator:App('en')"

Every instance of niconico_translator.App implements __call__() method, which is a WSGI application.

Open source

It’s written by Hong Minhee, and distributed under AGPLv3. You can find the source code from the repository (hg):

$ hg clone https://bitbucket.org/dahlia/niconico-translator

Please report bugs to the issue tracker if you find. Pull requests welcome!

Release History

Release History

This version
History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
niconico_translator-0.1.5-py3-none-any.whl (7.2 kB) Copy SHA256 Checksum SHA256 3.4 Wheel Sep 19, 2015
niconico-translator-0.1.5.tar.gz (4.7 kB) Copy SHA256 Checksum SHA256 Source Sep 19, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting