kakao search API customizing
Project description
kakaopy
Installation
- install from PyPI
pip install kakaopy
- install from cloned repository
git clone https://github.com/SeoJeongYeop/kakaopy.git
cd kakaopy
pip install .
However, this way occur warning 'DEPRECATION' This way is removed from pip 21.3 version
- install from GitHub repository
pip install git+https://github.com/SeoJeongYeop/kakaopy.git
Usage
- from kakaopy import kakaopy
from kakaopy import kakaopy
- set your REST_API_KEY
kakaopy.setHeader('YOUR_REST_API_KEY')
- make object
e.g. doc, video, image, book, blog, cafe
doc1 = kakaopy.doc()
- (option) setting object option.
e.g. size, page, sort, target(only book)
doc1.setSort("recency")
More information can be found through object.help() function.
doc1.help()
- object.search(query): search query and return search results in the form of json.
doc1.search("python")
- object.save(query, path): save file.json in path. The 'path' is the file name or path to the file.
doc1.save(query = "web crawling", path = "web.json")
is same as
doc1.save(query = "web crawling", path = "web")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kakaopy-0.2.0.tar.gz
(4.1 kB
view hashes)