daum_openapi-0.1
توضیحات
Python Library of Daum Open Data API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | daum_openapi-0.1 |
| نام | daum_openapi |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | SeongHyun.Ahn |
| ایمیل نویسنده | sh84.ahn@gmail.com |
| آدرس صفحه اصلی | https://github.com/AhnSeongHyun/daum_openapi |
| آدرس اینترنتی | https://pypi.org/project/daum_openapi/ |
| مجوز | MIT |
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"
نحوه نصب
نصب پکیج whl daum_openapi-0.1:
pip install daum_openapi-0.1.whl
نصب پکیج tar.gz daum_openapi-0.1:
pip install daum_openapi-0.1.tar.gz