And are you going to share your insights, so that others could benefit from them, or keep them to yourself?
don't be mad.
Just in the doc of BeautifulSoup....
The attributes of Tags
Tag and NavigableString objects have lots of useful members, most of which are covered in Navigating the Parse Tree and Searching the Parse Tree. However, there's one aspect of Tag objects we'll cover here: the attributes.
SGML tags have attributes:. for instance, each of the <P> tags in the example HTML above has an "id" attribute and an "align" attribute. You can access a tag's attributes by treating the Tag object as though it were a dictionary: