생활
파이썬 웹 크롤러 제작 한글 변환값 질문드립니다~
from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen('https://pf.kakao.com/_BkhQT/53919972')
bs = BeautifulSoup(html, 'html.parser')
for link in bs.find_all('div'):
if 'class' in link.attrs:
print(link.attrs['class'])
['wrap_thumb']
['info_cmt']
['item_cmt']
['wrap_thumb']
['info_cmt']
['item_cmt']
['wrap_thumb']
['info_cmt']
['box_appinfo']
Process finished with exit code 0
이렇게 결과값이 영어로 코드가 나오는데 제가 원하는 코드는 크롤링해서 고객이름과 댓글내용인데 한글로 어떻게 변환하나요 ㅠㅠ ?
1개의 답변이 있어요!