Skip to main content

Python Library of Daum Open Data API

Project description

Python library for Daum Open Data API.

Daum OPEN API : http://dna.daum.net/apis

Installation

pip install daum_openapi

Features

  • JSON response keys to class member variables.
  • Convert XML response to JSON and then keys to class member variables.

Usage

search : blog

>>> from daum_openapi.search import search
>>> sc = search(API_KEY)
>>> result =  sc.blog(u'coldplay', 10, 1, 'date', 'xml')
>>> {
>>>  "channel":
>>>  {
>>>    "result":"10",
>>>    "pageCount":"800",
>>>    "title":"Search Daum Open API"
>>>    "item": [
>>>              {"title":"Coldplay - viva la vida", "description":"viva la vida new song"},
>>>              {"title":"YELLOW", "description":"Yellow lyrics"}
>>>            ]
>>>
>>>  }
>>> }
>>> result.channel.result  //"10"
>>> result.channel.pageCount //"800"
>>> result.channel.title  //"Search Daum Open API"
>>> result.channel.item[0].title  //"Coldplay - viva la vida"
>>> result.channel.item[1].description   //"Yellow lyrics"

Project details


Release history Release notifications

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
daum_openapi-0.1.tar.gz (4.3 kB) Copy SHA256 hash SHA256 Source None Dec 13, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page