title: scraping html text using python
body: <p>how can i get the word Rodger Federer only from the html below</p>
  <pre><code>&lt;div class=&quot;profile-heading--desktop&quot;&gt;&lt;h1&gt;&lt;span class=&quot;profile-heading__rank&quot;&gt;#1 &lt;/span&gt;Roger Federer&lt;/h1&gt;&lt;div class=&quot;profile-subheading&quot;&gt;Athlete, Tennis&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  <p>am using this code</p>
  <pre><code>name = soup.find(class_ = 'profile-heading__rank').get_text()
  </code></pre>
  <p>and am getting
  #1
  ​</p>