summaryrefslogtreecommitdiff
path: root/doc/source/index.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/index.rst')
-rw-r--r--doc/source/index.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 11d9f88..0d91c1c 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -68,7 +68,7 @@ Running the "three sisters" document through Beautiful Soup gives us a
data structure::
from bs4 import BeautifulSoup
- soup = BeautifulSoup(html_doc)
+ soup = BeautifulSoup(html_doc, 'html.parser')
print(soup.prettify())
# <html>
@@ -270,7 +270,7 @@ This table summarizes the advantages and disadvantages of each parser library:
| lxml's HTML parser | ``BeautifulSoup(markup, "lxml")`` | * Very fast | * External C dependency |
| | | * Lenient | |
+----------------------+--------------------------------------------+--------------------------------+--------------------------+
-| lxml's XML parser | ``BeautifulSoup(markup, ["lxml", "xml"])`` | * Very fast | * External C dependency |
+| lxml's XML parser | ``BeautifulSoup(markup, "lxml-xml")`` | * Very fast | * External C dependency |
| | ``BeautifulSoup(markup, "xml")`` | * The only currently supported | |
| | | XML parser | |
+----------------------+--------------------------------------------+--------------------------------+--------------------------+