https://github.com/cnphil/jisho-bot
Simple Japanese-English dictionary Telegram bot with export features. 簡易な和英辞書ボット
https://github.com/cnphil/jisho-bot
dictionary japanese-dictionary telegram telegram-bot
Last synced: over 1 year ago
JSON representation
Simple Japanese-English dictionary Telegram bot with export features. 簡易な和英辞書ボット
- Host: GitHub
- URL: https://github.com/cnphil/jisho-bot
- Owner: cnphil
- Created: 2018-09-05T17:16:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-09T19:08:18.000Z (almost 8 years ago)
- Last Synced: 2025-01-13T18:46:07.946Z (over 1 year ago)
- Topics: dictionary, japanese-dictionary, telegram, telegram-bot
- Language: Python
- Homepage:
- Size: 337 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jisho-bot
jisho-bot offers basic Japanese-English dictionary over Telegram bot ([@my_jisho_bot](https://t.me/my_jisho_bot)). It also supports exporting your lookup history into flashcards.
## Installation
- python >= 3.5
- `pip install -r requirements.txt`
- ```zsh
mv jisho/config.py.example jisho/config.py
# Put your Telegram bot token here
vim jisho/config.py
# Run the bot
python jisho/jisho.py
```
## Usage
### Lookup a word
- Just message `` to the bot, or use `/search ` in group chats.
### Export flashcards
- Message `/record` to start recording.
- Lookup words.
- Message `/record_stop` to stop recording, a TSV file with definitions of the words will be sent to you.

#### Importing flashcards into Anki
[Anki](https://wzyboy.im/post/1223.html) is a powerful, cross-platform flashcard app. You can import the TSV file that jisho-bot generated into Anki.
The exported TSV has three fields:
- `{word} {reading} {definition}`
- `reading` is usually Hiragana, or Katakana for loanwords (借用語).
An example of Anki flashcard:

## Credits
jisho-bot uses [jisho.org](http://jisho.org)'s amazing API for Japanese-English dictionary.