Skip to content

Instantly share code, notes, and snippets.

View codeorchord's full-sized avatar
🎯
Focusing

Heheh codeorchord

🎯
Focusing
View GitHub Profile
@codeorchord
codeorchord / daumSearchwords.py
Created October 8, 2019 17:31
파이썬으로 다음 실시간 이슈 검색어 크롤링하기
from bs4 import BeautifulSoup
import requests
daum_url = "https://www.daum.net"
html = requests.get(daum_url).text
soup = BeautifulSoup(html, 'html.parser')
elem_list = soup.select(".list_mini .rank_cont .link_issue")
# 실시간 이슈 검색어만 추출
@codeorchord
codeorchord / naverSearchwords.py
Last active October 7, 2019 23:49
파이썬으로 네이버 급상승 검색어 크롤링하기
import requests
from bs4 import BeautifulSoup
naver_url = "http://www.naver.com"
html = requests.get(naver_url).text
soup = BeautifulSoup(html, 'html.parser')
elem_list = soup.select('.ah_roll_area .ah_k')
# 급상승 검색어만 추출