title: BeautifulSoup: how to extract specific element from parsed html
body: <p>I have the following code:</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  URL = 'https://fisheries.msc.org/en/fisheries/aafa-and-wfoa-north-pacific-albacore-tuna/@@view'
  page = requests.get(URL)
  
  soup = BeautifulSoup(page.content, 'html.parser')
  
  results = soup.find(&quot;div&quot;, attrs={&quot;class&quot;:'slab fishery-specs'})
  print(results.prettify())
  </code></pre>
  <p>it outputs a block of html but I'm just looking to extract &quot;7738 (2018)&quot; which is right under &quot;Tonnage&quot; under the last &quot;div class=&quot;fishery-spec&quot;&quot;. Anyone know how I can extract just that?</p>