Skip to content Skip to sidebar Skip to footer

Beautifulsoup: Parse Span Title

I am trying to parse a html page, I have successfully got to the sub area of the tree of the html dom but I am stuck in a place where there are span tags. example: I initially par

Solution 1:

You can simply do this:

>>> badges.span.span
<span title="3 gold badges"><span class="badge1"></span><span class="badgecount">3</span></span>

Post a Comment for "Beautifulsoup: Parse Span Title"