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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1524612860073f3b6832089ae546d43286132958ca0f2734f9cd3963ef90ad62
|
|
| MD5 |
9201f688a8743708d5aa37cff2cf4166
|
|
| BLAKE2b-256 |
139ac8c0021e366812a356dc5f17b89d67deda580efd9b7d275978a2e0fc8a35
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb2839a11969773d934551d63d2b69c5b2713922a060865a16b146bd42052822
|
|
| MD5 |
5d1088847f8b5d254599bd72c58150d3
|
|
| BLAKE2b-256 |
c97b89f9a5ecaf30065d3a544f9613dcf038570ea599b7d2f78f6a886caeca72
|