Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install niconico-translator

How to install niconico-translator

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install niconico-translator
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.1.1 Available View build log
 
Author
License
AGPLv3
Lastest release
version 0.1.1 on Sep 21st, 2013

Installation

You can install it using pip:

System Message: ERROR/3 (<string>, line 9)

Unknown directive type "code-block".

.. code-block:: console

   $ 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 domain (msg.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:

System Message: ERROR/3 (<string>, line 22)

Unknown directive type "code-block".

.. code-block:: text

   127.0.0.1    msg.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):

System Message: ERROR/3 (<string>, line 36)

Unknown directive type "code-block".

.. code-block:: console

   $ 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:

System Message: ERROR/3 (<string>, line 45)

Unknown directive type "code-block".

.. code-block:: console

   $ niconico-translator 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:

System Message: ERROR/3 (<string>, line 57)

Unknown directive type "code-block".

.. code-block:: console

   $ 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):

System Message: ERROR/3 (<string>, line 73)

Unknown directive type "code-block".

.. code-block:: console

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

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

Subscribe to package updates

Last updated Sep 21st, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.