title: How to change BeautifulSoup's parser?
body: <p>I was wondering how you would achieve this.</p>
  
  <p>In the documentation it mentioned to do:</p>
  
  <pre><code>BeautifulSoup(markup, "lxml")
  </code></pre>
  
  <p>I tried that where the markup is the html file I'm reading and all I got was this error:</p>
  
  <pre><code>AttributeError: 'str' object has no attribute 'text'`
  </code></pre>