Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python module for NAVER English-Korean and Korean-English dictionaries

Project Description

Python package for NAVER English-Korean and Korean-English dictionaries

Introduction

Search of both English-Korean and Korean-English dictionaries is provided.

Requirements

Ndic works by crawling the web http://endic.naver.com/. To crawl, it uses Requests and BeautifulSoup.

Therefore, you should use it in Internet Environments.

Ndic supports Python 2.6–2.7 & 3.3–3.5 because Requests officially supports these versions.

Installation

Install via pip:

$ pip install ndic

Usage

The usage is very simple.

Begin by importing the Ndic module:

>>> import ndic

Entering an English word as the search function argument will return the corresponding Korean word(s).

>>> ndic.search('apple')
'사과'

Conversely, entering a Korean word as the search function argument will return the corresponding English word(s).

>>> ndic.search('안녕하세요')
'Hi!'

Phrases may also be searched.

>>> ndic.search('in order to')
'(목적) 위하여'

Entering a nonexistent word as the search function argument will return the empty string.

>>> ndic.search("aslkjfwe")
''
>>> ndic.search("아댜리야")
''

If your network connection is lost, you will get below error message.

>>> ndic.search('...')
NdicConnectionError: Network connection is lost. Please check the connection to the Internet.

Command Line Interface

Furthermore, Ndic supports CLI(Command Line System).

So you can use it in command line and get the return value of the search fuction in terminals. It works by Click.

$ ndic love
(특히 가족・친구에 대한) 사랑
Release History

Release History

This version
History Node

1.8

History Node

1.7

History Node

1.6

History Node

1.5

History Node

1.4

History Node

1.3

History Node

1.2

History Node

1.1

History Node

1.0

History Node

0.9

History Node

0.7

History Node

0.6

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ndic-1.8.tar.gz (5.7 kB) Copy SHA256 Checksum SHA256 Source Sep 10, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting