title: Getting value from a button tag
body: <p>I'm trying to solve pagination extraction on a page using BeautifulSoup.</p>
  
  <p>I've managed to get buttons with</p>
  
  <pre><code>soup.findAll('button', class_='SomeName')
  </code></pre>
  
  <p>would get me this</p>
  
  <pre><code>&lt;button class="SomeName" data-page="2" type="button"&gt;2&lt;/button&gt;, &lt;button class="SomeName" data-page="3" type="button"&gt;3&lt;/button&gt;, &lt;button class="SomeName" data-page="4" type="button"&gt;4&lt;/button&gt;, &lt;button class="SomeName" data-page="5" type="button"&gt;5&lt;/button&gt;, &lt;button class="SomeName" data-page="6" type="button"&gt;6&lt;/button&gt;, &lt;button class="SomeName" data-page="7" type="button"&gt;7-12&lt;/button&gt;
  </code></pre>
  
  <p>I would like to get a list of numbers</p>
  
  <pre><code>2
  3
  4
  5
  6
  7-12
  </code></pre>