title: BeautifulSoup sometimes gives exceptions
body: <p>The strange thing is that sometimes the BeautifulSoup object does give the desired data, but other times I get an error like or <code>listindex error</code> or <code>out of range</code> or <code>nonetype object does not have attribute findNext()</code>, which is data that is nested inside other elements. </p>
  
  <p>This is the code :</p>
  
  <pre><code>url = 'http://www.computerstore.nl/product/470130/category-208983/asrock-z97-extreme6.html'
  source_code = requests.get(url)
  plain_text = source_code.text
  soup = BeautifulSoup(plain_text)
  
  a = soup.find(text=('Socket')).find_next('dd').string
  
  print(a)
  </code></pre>