작성
·
302
0
--------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-2-6fe94347d1cd> in <module> 1 import urllib.request ----> 2 from bs4 import Beautifulsoup 3 4 url = 'https://search.naver.com/search.naver?where=view&sm=tab_jum&query=파이썬' 5 ImportError: cannot import name 'Beautifulsoup' from 'bs4' (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/bs4/__init__.py)
이런 에러가 뜨네요?? 어떻게 해야 되나요?
답변 1
0
html = 까지 했을 때는 이런 에러가 뜹니다.. 뭐가 문제일까요
---------------------------------------------------------------------------UnicodeEncodeError Traceback (most recent call last)<ipython-input-9-41016efaec08> in <module> ----> 1 html = urllib.request.urlopen(url).read(url) /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context) 212 else: 213 opener = _opener --> 214 return opener.open(url, data, timeout) 215 216 def install_opener(opener):