인프런 커뮤니티 질문&답변
과제 질문
작성
·
239
0
from bs4 import BeautifulSoup
import urllib.request as req
import urllib.parse as rep
import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
url = "https://www.daum.net/"
res = req.urlopen(url).read()
soup = BeautifulSoup(res, "html.parser")
top = soup.select("ul.list_inner")[0]
print(top)
#for i,e in enumerate(top,1):
#print(i,e.select_one("h4.block_title > a").string)
분명히 웹사이트에는 내용이 있는데 출력해보면 빈리스트만 나오네요 왜이러는거죠?
퀴즈
52%나 틀려요. 한번 도전해보세요!
크롬 개발자 도구에서 웹사이트의 HTML 태그 및 요소 구조를 분석하는 데 주로 사용되는 패널은 무엇일까요?
Console
Elements
Network
Sources





