I have narrowed my objective string to the following html:
<h2 class="user-name"> John Kennity <span class="top-class"><a href="http://service-web.com/2008-07-31/11" target="_blank">highest rank </a></span>
</h2>
I want to access the name John Kennith. How can I do that in beautifulsoup python ?
soup.h2.string?