NAVER 비 로그인 API 호출 python code
import os import sys import urllib.request client_id = "tSXeMjd9Z85SakWAn3t1-2345" client_secret = "Xj5KGM4R6-7890t" encText = urllib.parse.quote("삼성전자") url = "https://openapi.naver.com/v1/search/blog?query=" + encText # JSON 결과 # url = "https://openapi.naver.com/v1/search/blog.xml?query=" + encText # XML 결과 request = urllib.request.Request(url) request.add_header("X-Naver-Client-Id",client_id)..
IT/AI
2022. 12. 25. 23:44