-
Install Python.
-
Windows: https://www.python.org/downloads/
On the first page of the installer, make sure to check
Add Python 3.x to PATH. -
Mac: Install Homebrew and run
brew install python3. -
Linux: Python is included in almost all distributions.
-
-
Download and extract this repository to the location you wish to install the files.
-
Run
python install_rikaitan_api.pyand follow the prompts. If you do not see any errors, it has successfully installed.If you use Firefox or have built Rikaitan from source, please refer to the How to find your extension ID section below.
-
Go to the Rikaitan settings page on your browser.
-
Enable advanced options by clicking the toggle switch in the bottom left corner.
-
Go to
Generaland enableEnable Rikaitan API. Rikaitan will automatically start the API every time you open your browser when this setting is enabled. -
Click
More...and click theTestbutton to see if the Rikaitan API was installed correctly. You may need to wait a few seconds after enabling the setting for the native messaging component to start up.
If you are a Firefox user and/or have built Rikaitan from source, you need to obtain the extension ID for Rikaitan. If you reinstall Rikaitan, you may need to get the extension ID again.
-
Chrome/Chromium/Edge:
-
Open up your Rikaitan settings page. The URL should look something like this:
Note: On Edge, the prefix will be
extension://. Make sure to change this tochrome-extension://, otherwise it will not work. -
Copy everything before
settings.html. For example:chrome-extension://mbclianmdhnmblbfecpefmgjhajbioip/.Make sure to remember the
chrome-extension://AND the/at the end of the ID!! -
Rerun the script as seen above and when it displays
Add more extension IDs, paste the extension ID URL that you got. It should work. Continue with the tutorial.
-
-
Firefox:
-
Go to
about:debugging, then selectThis Firefoxat the sidebar. -
Scroll until you find Rikaitan. It should look like this:
-
Copy the
Extension ID. For example:{2d13e145-294e-4ead-9bce-b4644b203a00}. -
Rerun the script as seen above and when it displays
Add more extension IDs, paste the extension ID with the brackets in the input. It should work. Continue with the tutorial.
-
By default, the api is hosted on http://127.0.0.1:19633. To change this, edit ADDR and PORT in rikaitan_api.py.

