I new to Python and BeautifulSoup so am still learning, this is probably quite simple but I'm struggling to find an answer.
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.
'<'a class="solr-page-selector-page" data-offset="12">2</a>
'<'a class="solr-page-selector-page" data-offset="24">3</a>
'<'a class="solr-page-selector-page" data-offset="36">4</a>
'<'a class="solr-page-selector-page" data-offset="48">5</a>
'<'a class="solr-page-selector-page next full" data-offset="12">Next</a>
Any help would be greatly appreciated.
Thank you