Chapter 7. Output in Beautiful Soup
Beautiful Soup not only searches, navigates, and modifies the HTML/XML, but also the output content in a good format. Beautiful Soup can deal with different types of printing such as:
- Formatted printing
- Unformatted printing
Apart from these, Beautiful Soup provides different formatters to format the output. Since the HTML tree can undergo modification after creation, these output methods will help in viewing the modified HTML tree.
Also in this chapter, we will discuss a simple method of getting only the text stored within a web page.