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!
Metadata
Release files for niconico-translator 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| niconico-translator-0.1.5.tar.gz | 4.7 kB | Without provenance | Details for niconico-translator-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| niconico_translator-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for niconico_translator-0.1.5-py3-none-any.whl |
Total release size: 11.9 kB
Release files / niconico-translator-0.1.5.tar.gz
| Download URL | niconico-translator-0.1.5.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f398131d6e79876e4c1d72118d82d9c6499e4e54fb0144ec85a0ecea653e5901
|
|
BLAKE2b-256 checksum How to use checksums |
23a625fc2d6f5eeeb55d94d9f021ce8c9e5e581d0a6a48b630385b6537d47862
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / niconico_translator-0.1.5-py3-none-any.whl
| Download URL | niconico_translator-0.1.5-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b3dd1a0aeec81e78ea2246b2dfc09e9993d06cb60ac2c6e57e533b41fcec494
|
|
BLAKE2b-256 checksum How to use checksums |
c43b1e0f774ea22681d66a5f0e6305b8dc113f24d3967f0a6cb4b25d75b86d30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for niconico-translator 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.