![]() |
VOOZH | about |
Prerequisites: Beautifulsoup
Beautifulsoup is a Python library used to extract the contents from the webpages. It is used in extracting the contents from HTML and XML structures. To use this library, we need to install it first. Here we are going to append the text to the existing contents of tag. We will do this with the help of the BeautifulSoup library.
Approach
Function used:
Append function of the Beautifulsoup module is used to append content to desired tags.
Syntax:
append("<string>"
File Used:
Python Code:
Output: