title: Python BeautifulSoup selecting CSS
body: <p>I new to Python and BeautifulSoup so am still learning, this is probably quite simple but I'm struggling to find an answer.</p>
  
  <p>I'm basically trying to scrape '12' from the last line using the 'data-offset' tag. I can navigate to the last line by searching for class="solr-page-selector-page next full", but don't know how to then get to '12' from here.</p>
  
  <pre><code>'&lt;'a class="solr-page-selector-page" data-offset="12"&gt;2&lt;/a&gt;
  '&lt;'a class="solr-page-selector-page" data-offset="24"&gt;3&lt;/a&gt;
  '&lt;'a class="solr-page-selector-page" data-offset="36"&gt;4&lt;/a&gt;
  '&lt;'a class="solr-page-selector-page" data-offset="48"&gt;5&lt;/a&gt;
  '&lt;'a class="solr-page-selector-page next full" data-offset="12"&gt;Next&lt;/a&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thank you</p>