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 | RSS feed

This version

0.1

Download files

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

Source Distribution

daum_openapi-0.1.tar.gz (4.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page