Skip to main content

naver_search_ad

naver_search_ad 는 네이버 검색 광고 오픈 API의 파이썬 래퍼(Python wrapper)입니다.
현재는 연관 검색어(키워드 도구)만 구현되어 있습니다.
네이버 검색광고 OPEN API에 관한 자세한 내용은 아래 주소에서 확인하실 수 있습니다.
네이버 검색 광고 OPEN API 공식문서

설치

pip install naver_search_ad

사용법

  1. 위의 명령어를 이용하여 naver_search_ad 패키지 설치
  2. OPEN API Key 발급받기
  3. naver.ini 파일을 만들고 아래의 정보를 작성하십시오.
[DEFAULT]
CUSTOMER_ID = '발급받은 customer id'
API_KEY = '발급받은 API License'
SECRET_KEY = '발급받은 secret key'
  1. 파이썬 쉘에서 테스트 해보기
MacBook-Pro:~/kyungdongseo$ pip install naver_search_ad

MacBook-Pro:~/kyungdongseo$ cat >> naver.ini << EOF
> [DEFAULT]
> CUSTOMER_ID = '발급받은 customerid'
> API_KEY = '발급받은 API License'
> SECRET_KEY = '발급받은 secret key'
> EOF

MacBook-Pro:~/kyungdongseo$ ls
naver.ini    

MacBook-Pro:~/kyungdongseo$ python
>>> from naver_search_ad.keywords import related_keyword
>>> r = related_keyword('POP꽂이')
>>> import pprint
>>> pprint.pprint(r)
{'keywordList': [{'compIdx': '높음',
                  'monthlyAveMobileClkCnt': 28.7,
                  'monthlyAveMobileCtr': 4.62,
                  'monthlyAvePcClkCnt': 10.1,
                  'monthlyAvePcCtr': 1.6,
                  'monthlyMobileQcCnt': 660,
                  'monthlyPcQcCnt': 710,
                  'plAvgDepth': 15,
                  'relKeyword': 'POP꽂이',
                  'related_point': 1200},
                 {'compIdx': '높음',
                  'monthlyAveMobileClkCnt': 101.7,
                  'monthlyAveMobileCtr': 2.32,
                  'monthlyAvePcClkCnt': 7.9,
                  'monthlyAvePcCtr': 0.8,
                  'monthlyMobileQcCnt': 4810,
                  'monthlyPcQcCnt': 1100,
                  'plAvgDepth': 15,
                  'relKeyword': '집게스탠드',
                  'related_point': 1199},
                  # 나머지는 생략...]}

>>> from naver_search_ad.keywords import related_keyword_to_xls
>>> related_keyword_to_xls('POP꽂이', './related_keyword.xls')
>>> exit()

MacBook-Pro:~/kyungdongseo$ ls
naver.ini  related_keyword.xls

Metadata

Release files for naver-search-ad 1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for naver-search-ad 1.5
File Interpreter ABI Platform Actions
naver_search_ad-1.5-py3-none-any.whl Python 3 none any Details for naver_search_ad-1.5-py3-none-any.whl

Security for naver-search-ad 1.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page