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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file kakaopy-0.2.0.tar.gz.

File metadata

  • Download URL: kakaopy-0.2.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for kakaopy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1524612860073f3b6832089ae546d43286132958ca0f2734f9cd3963ef90ad62
MD5 9201f688a8743708d5aa37cff2cf4166
BLAKE2b-256 139ac8c0021e366812a356dc5f17b89d67deda580efd9b7d275978a2e0fc8a35

See more details on using hashes here.

File details

Details for the file kakaopy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: kakaopy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for kakaopy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb2839a11969773d934551d63d2b69c5b2713922a060865a16b146bd42052822
MD5 5d1088847f8b5d254599bd72c58150d3
BLAKE2b-256 c97b89f9a5ecaf30065d3a544f9613dcf038570ea599b7d2f78f6a886caeca72

See more details on using hashes here.

Supported by

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