title: How can I input code stored in a MySQL cell into my Python beautifulsoup
body: <p>I'm parsing through many different websites and want to keep their unique tags in a MySQL table and use that stored code to retrieve new content through using beautiful soup. However i'm having trouble when retrieving that code and placing it in my beautiful soup for more complicated tags outside of 'title'.</p>
  
  <p>So it works for simple tags such as 'title', but not for 'div', {'class': 'event-info'}, which is row[3] in my example. </p>
  
  <p><strong>'div',{'class':'event-info'}</strong> is in my mysql cell in row[3]</p>
  
  <pre><code>Traceback (most recent call last):
    File 
      content = soup.find(row[3]).get_text().strip()
  AttributeError: 'NoneType' object has no attribute 'get_text'
  </code></pre>
  
  <p>My column is using "varchar(255) COLLATE utf8mb4_unicode_ci"</p>