title: How to extract innerHTML from tag using BeautifulSoup in Python
body: <p>I am trying to extract the innerHTML from a tag using the following code:</p>
  
  <pre><code>theurl = "http://na.op.gg/summoner/userName=Darshan"
  thepage = urlopen(theurl)
  soup = BeautifulSoup(thepage,"html.parser")
  rank = soup.findAll('span',{"class":"tierRank"})
  </code></pre>
  
  <p>However I am getting <code>[&lt; span class="tierRank" &gt; Master &lt; /span &gt;]</code> instead.
  What I want to show is the value "Master" only.</p>
  
  <p>Using <code>soup.get_text</code> instead of <code>soup.findall</code> doesn't work.</p>
  
  <p>I tried adding <code>.text</code> and <code>.string</code> to the end of last line but that did not work either.</p>