Beautiful Soup Documentation
Main Page
funcs
**kwargs
.contents and .children
.descendants
.next_element and .previous_element
.next_elements
.next_elements and .previous_elements
.next_sibling and .previous_sibling
.next_siblings
.next_siblings and .previous_siblings
.parent
.parents
.string
.strings and stripped_strings
.stripped_strings
A function
A list
A regular expression
A string
Attributes
Beautiful Soup
Beautiful Soup 3
BeautifulSoup
BeautifulSoup.new_string() and .new_tag()
CSS selectors
Calling a tag is like calling find_all()
Changing tag names and attributes
Comments and other special strings
Differences between parsers
Encodings
Entities
Errors when parsing a document
Generators
Getting help
Going back and forth
Going down
Going sideways
Going up
Improving Performance
Inconsistent encodings
Installing Beautiful Soup
Installing a parser
Kinds of filters
Kinds of objects
Making the soup
Method names
Miscellaneous
Miscellaneous
Modifying .string
Modifying the tree
Multi-valued attributes
Name
NavigableString
Navigating the tree
Navigating using tag names
Non-pretty printing
Other parser problems
Output
Output encoding
Output formatters
Parsing XML
Parsing XML
Parsing only part of a document
Porting code to BS4
Pretty-printing
Problems after installation
Quick Start
Remember
Searching by CSS class
Searching the tree
Smart quotes
SoupStrainer
Specifying the parser to use
Tag
The keyword arguments
The limit argument
The name argument
The recursive argument
The text argument
Troubleshooting
True
Unicode, Dammit
Version mismatch problems
XML
You need a parser
`
append()
clear()
decompose()
diagnose()
extract()
find()
find_all()
find_all_next() and find_next()
find_all_previous() and find_previous()
find_next_siblings() and find_next_sibling()
find_parents() and find_parent()
find_previous_siblings() and find_previous_sibling()
get_text()
insert()
insert_before() and insert_after()
install lxml orhtml5lib.
limit
replace_with()
the valueTrue
unwrap()
wrap()