추석 연관 검색어(키워드)를 뽑아보자
requests
bs4
html.find_all("div", {"class":"item"})
for i in result:
print(i.text)
import requests
import bs4
url = "https://search.naver.com/search.naver?where=nexearch&sm=top_hty&fbm=0&ie=utf8&query=%EC%B6%94%EC%84%9D"
http = requests.get(url)
html = bs4.BeautifulSoup(http.text, 'html.parser')
result = html.find_all("div", {"class":"tit"})
for i in result:
print(i.text)
url = "https://search.naver.com/search.naver?where=nexearch&sm=top_hty&fbm=0&ie=utf8&query=" + kwd