title: Python - Beautiful Soup - Remove Tags
body: <p>I have extracted the below web based data as a list using <code>Beautiful Soup</code>. On the original website it's a table of numbers:</p>
  
  <pre><code>[&lt;td class="right"&gt;113&lt;/td&gt;, &lt;td class="right"&gt;
   89 &lt;/td&gt;, &lt;td class="right last"&gt;
  &lt;b&gt;117&lt;/b&gt; &lt;/td&gt;, &lt;td class="right"&gt;113&lt;/td&gt;, &lt;td class="right"&gt;
   85 &lt;/td&gt;, &lt;td class="right last"&gt;
  &lt;b&gt;114&lt;/b&gt; &lt;/td&gt;, &lt;td class="right"&gt;100&lt;/td&gt;, &lt;td class="right"&gt;
   56 &lt;/td&gt;, &lt;td class="right last"&gt;
  &lt;b&gt;84&lt;/b&gt; &lt;/td&gt;]
  </code></pre>
  
  <p>What's the most efficient way to create a list of numbers from this data? Ideally I'd like to extract the tags using Beautiful Soup but I can't figure out how to do this from the documentation.</p>
  
  <p>My original Soup code is:</p>
  
  <pre><code>print soup.find_all('td', 'right')             #printing this produces the above data
  
  numbers_data = []                              #my attempt to extract tags
  for e in soup.find_all('td', 'right'):
      numbers_data.append(e.extract())
  
  print numbers_data
  </code></pre>
  
  <p>Both return the same list.</p>