Skip to main content

kakao search API customizing

Project description

kakaopy

Installation

  1. install from PyPI
pip install kakaopy
  1. 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

  1. install from GitHub repository
pip install git+https://github.com/SeoJeongYeop/kakaopy.git

Usage

  1. from kakaopy import kakaopy
from kakaopy import kakaopy
  1. set your REST_API_KEY
kakaopy.setHeader('YOUR_REST_API_KEY')
  1. make object

e.g. doc, video, image, book, blog, cafe

doc1 = kakaopy.doc()
  1. (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()

help function

  1. object.search(query): search query and return search results in the form of json.
doc1.search("python")
  1. 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


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)

Uploaded Source

Built Distribution

kakaopy-0.2.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

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