title: Set lxml as default BeautifulSoup parser
body: <p>I'm working on a web scraping project and have ran into problems with speed. To try to fix it, I want to use lxml instead of html.parser as BeautifulSoup's parser. I've been able to do this:</p>
  
  <pre><code>soup = bs4.BeautifulSoup(html, 'lxml')
  </code></pre>
  
  <p>but I don't want to have to repeatedly type <code>'lxml'</code> every time I call BeautifulSoup. Is there a way I can set which parser to use once at the beginning of my program?</p>