A REST API that scrapes the Naver Korean-English Dictionary, delivering Korean-English translation.
229
This Docker image provides a REST API that scrapes the Naver Korean-English Dictionary, delivering comprehensive Korean-English translation data.
To run the NaverDictionary service, execute the following command:
docker run --network=host -p 8080:8080 sadlyharry/naverdictionary:latest
This command starts a REST server accessible at port 8080.
The NaverDictionary service offers several endpoints to interact with the dictionary data:
Get Word Information
Retrieve detailed information about a Korean word.
<hostname>/get?word=<korean_word>127.0.0.1/get?word=사랑{
"message": {
"Topik": "TOPIK Elementary",
"Importance": "★★★",
"Title": "사랑",
"Hanja": "愛",
"Endef": "love",
"Pronun": "sa-rang",
"PartSpeech": "noun",
"Meanings": "Deep affection for someone or something."
}
}
Get Raw Entry Information
Access the raw entry data scraped from the Naver dictionary.
<hostname>/get/entryinfo?word=<korean_word>127.0.0.1/get/entryinfo?word=사랑{
"message": {
...
}
}
Get Raw Search Information
Obtain the raw search data from the Naver dictionary.
<hostname>/get/searchinfo?word=<korean_word>127.0.0.1/get/searchinfo?word=사랑{
"message": {
...
}
}
Get Formatted Message
Retrieve a formatted message suitable for chatbot integration or frontend display.
<hostname>/get/message?word=<korean_word>127.0.0.1/get/message?word=사랑{
"message": "사랑 (love)\nPart of Speech: Noun\nPronunciation: sa-rang\nMeaning: Deep affection for someone or something."
}
In case of an error, the API will respond with a JSON object containing an error message.
{
"error": ...
}
This project is licensed under the MIT License.
For more information or to contribute, visit the GitHub repository.
Content type
Image
Digest
sha256:49f1821b2…
Size
13.9 MB
Last updated
over 1 year ago
docker pull sadlyharry/naverdictionary