Prerequisite: Beautifulsoup Installation
Name property is provided by Beautiful Soup which is a web scraping framework for Python. Web scraping is the process of extracting data from the website using automated tools to make the process faster. Name object corresponds to the name of an XML or HTML tag in the original document.
Parameters: This function doesn’t accept any parameter.
Example 1: Program to extract name of a XML tag.
Example 2: Program that explains the above functionality for a HTML tag.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course