Error reporting using Htmlparser under Python 3.5.1

After PIP installs Htmlparser, an error “importerror: can’t find module markupbase” is reported when importing Htmlparser

I forgot the screenshot of the error message. Anyway, it probably means the above

Then find the HTML parser file and replace all markupbases in it with_Just markupbase

In addition, when transferring web page data to the feed () method, it is necessary to convert the data of bytes type==> bytes.decode(“utf8”)。


Similar Posts: