A REST API that scrapes the Naver Korean-English Dictionary, delivering Korean-English translation.
334
This repository contains the source code for the NaverDictionary microservice, which scrapes the Naver Korean-English Dictionary and provides a REST API for retrieving Korean word information, including translations and additional metadata. This service can be easily deployed via Docker.
To run the NaverDictionary service, follow these steps:
git clone https://github.com/yourusername/naverdictionarytypescript.git
cd naverdictionary
If you prefer to build the Docker image from source, run the following command:
docker build -t naverdictionarytypescript .
To run the service using Docker, execute the following command:
docker run -p 8080:8080 naverdictionarytypescript:latest
This will start the REST server at port 8080. If you'd prefer, you can directly download and test the pre-built Docker image available on Docker Hub:
docker run -p 8080:8080 sadlyharry/naverdictionarytypescript:latest
The NaverDictionary microservice exposes several endpoints that you can use to interact with the dictionary data:
Retrieve detailed information about a Korean word.
<hostname>/get?word=<korean_word>127.0.0.1/get?word=사랑{
"Topik": "TOPIK Elementary",
"Importance": "★★★",
"Title": "사랑",
"Hanja": "愛",
"Endef": "love",
"Pronun": "sa-rang",
"PartSpeech": "noun",
"Meanings": "Deep affection for someone or something."
}
Access the raw entry data scraped from the Naver dictionary.
<hostname>/get/entryinfo?word=<korean_word>127.0.0.1/get/entryinfo?word=사랑Obtain the raw search data from the Naver dictionary.
<hostname>/get/searchinfo?word=<korean_word>127.0.0.1/get/searchinfo?word=사랑Retrieve a formatted message suitable for chatbot integration or frontend display.
<hostname>/get/message?word=<korean_word>127.0.0.1/get/message?word=사랑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.
If you prefer not to build the Docker image from source, you can download and test the pre-built Docker image on Docker Hub:
docker pull sadlyharry/naverdictionarytypescript:latest
For more information or to contribute, visit the GitHub repository.
Content type
Image
Digest
sha256:9a52d9821…
Size
68 MB
Last updated
over 1 year ago
docker pull sadlyharry/naverdictionarytypescript