title: Beautiful Soup and Table Scraping - lxml vs html parser
body: <p>I'm trying to extract the HTML code of a table from a webpage using BeautifulSoup.</p>
  
  <pre><code>&lt;table class="facts_label" id="facts_table"&gt;...&lt;/table&gt;
  </code></pre>
  
  <p>I would like to know why the code bellow works with the <code>"html.parser"</code> and prints back <code>none</code> if I change <code>"html.parser"</code> for <code>"lxml"</code>. </p>
  
  <pre><code>#! /usr/bin/python
  
  from bs4 import BeautifulSoup
  from urllib import urlopen
  
  webpage = urlopen('http://www.thewebpage.com')
  soup=BeautifulSoup(webpage, "html.parser")
  table = soup.find('table', {'class' : 'facts_label'})
  print table
  </code></pre>