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.

Files for daum_openapi, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size daum_openapi-0.1.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page