title: How to Extract a Division from Html with BeautifulSoup
body: <p>I am trying to extract the 'meanings' section of a dictionary entry from a html file using beautifulsoup but it is giving me some trouble. Here is a summary of what I have tried so far:</p>
  <ul>
  <li>I right click on the dictionary entry page below and save the webpage to my Python directory as 'aufmachen.html'</li>
  </ul>
  <p><a href="https://www.duden.de/rechtschreibung/aufmachen" rel="nofollow noreferrer">https://www.duden.de/rechtschreibung/aufmachen</a></p>
  <ul>
  <li>Within the source code of this webpage, the section that I am trying to extract starts from line 1042 with the expression</li>
  </ul>
  
  <ul>
  <li>I wrote the code below but neither tags nor Bedeutungen contains any search results.</li>
  </ul>
  <pre><code>import requests
  import pandas as pd
  import urllib.request
  from bs4 import BeautifulSoup
  
  with open(&quot;aufmachen.html&quot;,encoding=&quot;utf8&quot;) as f:
      doc = BeautifulSoup(f,&quot;html.parser&quot;)
  
  
  tags = doc.body.findAll(text = '&lt;div class=&quot;division &quot;  id=&quot;bedeutungen&quot;&gt;')
  
  print(tags)
  
  Bedeutungen = doc.body.findAll(&quot;div&quot;, {&quot;id&quot;: &quot;bedeutungen&quot;})
  
  print(Bedeutungen)
  </code></pre>
  <p>Could you please help me with this problem?</p>
  <p>Thanks for your time in advance.</p>