import urllib.request
from bs4 import BeautifulSoup
url = "https://www.naver.com"
html = urllib.request.urlopen(url)
soup = BeautifulSoup(html, 'html.parser')
print(soup)
파이썬으로 네이버의 html 요청해서 출력하면 아래처럼 일부만 가져와집니다.
저는 네이버 html의 전문을 다루고 싶은데 아래 NM_RTK_VIEW처럼 일부만 가져와지고 더 아래의 정보는 가져오지 못하고 있습니다.
이게 어떤 문제인가요...
감사합니다.
<div class="area_hotkeyword">
<div aria-hidden="false" class="ah_roll">
<h3 class="blind">급상승 검색어</h3>
<div class="ah_roll_area" id="NM_RTK_ROLLING_WRAP"></div>
</div>
<span class="ah_ico_open"></span>
<div id="NM_RTK_VIEW"></div>
</div>
</div>
</div>
(아래는 제가 직접 네이버 html를 캡쳐한 사진이고 위는 크롤링하여 바로 출력한 NM_RTK_VIEW입니다.)