how can i get the word Rodger Federer only from the html below
<div class="profile-heading--desktop"><h1><span class="profile-heading__rank">#1 </span>Roger Federer</h1><div class="profile-subheading">Athlete, Tennis</div></div>
am using this code
name = soup.find(class_ = 'profile-heading__rank').get_text()
and am getting #1