Hi, and welcome to this module on Leveraging Advanced Features of Beautiful Soup.
So far we've used the Beautiful Soup HTML parse tree to
navigate and search for specific elements.
In this module,
we'll see how you can modify the parse tree and write
your modifications out to file.
We'll use functions such as extend, insert,
decompose, extract, wrap, and unwrap,
all of which are tree modification functions.
We'll see that it's possible to use the Python copy
function to copy Beautiful Soup objects.
We'll also see how we can use the comparison operator,
the double equal to (==) to compare Beautiful Soup objects.
We'll work with the different parser libraries that are
available in Beautiful Soup and compare and contrast the
strengths and weaknesses of each.
Now the entire HTML document that you're working with might be large.
We'll see how you can use the Soup Strainer object to parse only parts of a
document so that you're not working with the entire document.
And, finally, we'll get a quick overview of how encodings work in Beautiful Soup.