https://www.youtube.com/watch?v=Fo0E24tDkKQ&list=PLAdQRRy4vtQREMg7H7-zFPSOYS6xF1gIL&index=20
import requests
from urllib.parse import urlparse
client_id = "id"
client_secret = "secret"
keyword="4k카메라"
url = "https://openapi.naver.com/v1/search/blog?query=" + keyword # json 결과
result = requests.get(urlparse(url).geturl(),
headers={"X-Naver-Client-Id":client_id,
"X-Naver-Client-Secret":client_secret})
json_obj=result.json()
print(json_obj)
'컴퓨터 > Python' 카테고리의 다른 글
여러종목 주가 가져오기-python dictionary (0) | 2019.06.23 |
---|---|
네이버금융 주식종목 가격가져오기 (0) | 2019.06.23 |
json viewer (0) | 2019.06.23 |
bs4 (0) | 2019.06.23 |
네이버 카페 서브페이지 웹크롤링 (0) | 2019.06.23 |