Hello,
I'm trying to suppress parsing error like the following:
/Users/REDACTED/Library/Python/3.9/lib/python/site-packages/bs4/builder/_htmlparser.py:102: UserWarning: expected name token at '<![��H�\x05�"��V��\x06u��@' time: 0:52:19.475862 warnings.warn(msg)
I found this solution on
Stackexchange that sounded perfect, but it appears that UserWarning no longer exists:
>>> from bs4 import UserWarning
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'UserWarning' from 'bs4' (/Users/REDACTED/Library/Python/3.9/lib/python/site-packages/bs4/__init__.py)
Can UserWarning still be imported?
Thanks.