get element tag name beautfulsoup 1

get element tag name beautfulsoup

print(ele.name)

Here is what the above code is Doing:
1. We’re creating a list of all the elements in the document.
2. We’re iterating through the list of elements.
3. We’re printing the name of each element.

Similar Posts