summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2014-12-07 10:01:30 -0500
committerLeonard Richardson <leonardr@segfault.org>2014-12-07 10:01:30 -0500
commit70e9f8c3d3250a2e780b00e2220a286638488000 (patch)
treeecf9840aa94434669bb12c07a4c3a84ad8b71b18 /doc/source
parentbf58c02abf418556927363cf79cc86bee58d0592 (diff)
Tweaked the parser warning.
Diffstat (limited to 'doc/source')
-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 | |
+----------------------+--------------------------------------------+--------------------------------+--------------------------+