네이버 API를 사용하기 위한 오픈소스 파이썬 라이브러리
🚀pip install PyNaver --upgrade
PyNaver
PyNaver는 NAVER Developers와 NAVER CLOUD PLATFORM에서 제공하는 다양한 API를 파이썬으로 쉽게 사용할 수 있도록 해주는 라이브러리입니다. 그래서 PyNaver를 사용하면 NAVER Developers의 검색 API를 통해 웹문서, 이미지, 쇼핑, 전문자료 등을 검색할 수 있고, 파파고 API를 사용하면 Papago 번역, 한글인명-로마자 변환 기능을 이용할 수 있습니다. 단축 URL API를 사용하면 원래의 URL을 짧게 줄일 수도 있습니다. NAVER CLOUD PLATFORM의 지오코딩 API를 이용하면 주소로 좌표 정보를 알아낼 수 있고, 리버스 지오코딩 API를 이용하면 좌표로 주소 정보를 알아낼 수 있습니다. 또한, Direction 5 및 Direction 15 API를 사용하면 출발지/목적지 정보에 따라 경로 관련 정보를 알아낼 수 있습니다.
설치 방법
- 운영체제(OS)에 따라 아래 중 하나를 선택합니다.
- Windows: CMD(명령 프롬프트) 실행
- Mac: Terminal(터미널) 실행
- 아래 Shell 명령어를 입력 후 실행합니다.
pip install PyNaver --upgrade
사용 방법
더 많은 정보는 하단의 튜토리얼을 참고하면 됩니다.
(예시) 통합 검색어 트렌드 API
from PyNaver import Naver
# 애플리케이션 인증 정보
client_id = ""
client_secret = ""
# 네이버 API 인스턴스 생성
api = Naver(client_id, client_secret)
# 파라미터
startDate = "2022-01-01"
endDate = "2022-08-31"
timeUnit = "date"
keywordGroups = [
{
"groupName": "미국",
"keywords": ["나스닥","NASDAQ","S&P500"]
},
{
"groupName": "한국",
"keywords": ["코스피","코스닥"]
},
]
# 실행
df = api.datalab_search(startDate, endDate, timeUnit, keywordGroups)
(예시) 지오코딩 API
from PyNaver import NaverCloudPlatform
# 애플리케이션 인증 정보
client_id = ""
client_secret = ""
# 네이버 클라우드 플랫폼 API 인스턴스 생성
api = NaverCloudPlatform(client_id, client_secret)
# 주소
query = "서초동 1303-22"
# 실행
res = api.geocoding(query)
참고
-
튜토리얼
-
공식문서
-
문의
- 이메일: wooil@kakao.com
- 카카오톡 오픈채팅방: 접속 링크
기여자
Metadata
Release files for PyNaver 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyNaver-0.0.10.tar.gz | 9.7 kB | Without provenance | Details for PyNaver-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyNaver-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for PyNaver-0.0.10-py3-none-any.whl |
Total release size: 18.0 kB
Security for PyNaver 0.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.