diff options
Diffstat (limited to 'doc/source/index.rst')
-rw-r--r-- | doc/source/index.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst index fc69ba8..0b85924 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -2493,14 +2493,14 @@ has changed to ``bs4``. Soup 4 code on a system that doesn't have BS4 installed. ``HTMLParser.HTMLParseError: malformed start tag`` - Caused by giving -Python's built-in HTML parser a document it can't -handle. :ref:`Install lxml or html5lib. <parser-installation>` Any other -``HTMLParseError`` is probably the same problem. +Python's built-in HTML parser a document it can't handle. Any other +``HTMLParseError`` is probably the same problem. Solution: +:ref:`Install lxml or html5lib. <parser-installation>` If you can't find a tag that you know is in the document (that is, ``find_all()`` returned ``[]`` or ``find()`` returned ``None``), you're probably using Python's built-in HTML parser, which sometimes skips -tags it doesn't understand. :ref:`Install lxml or +tags it doesn't understand. Solution: :ref:`Install lxml or html5lib. <parser-installation>` ``KeyError: [attr]`` - Caused by accessing ``tag['attr']`` when the |