title: NonType Object when transforming a scraped table to DataFrame
body: <p>I am trying to scrape a list of stocks tickers that are displayed in a table in the following link: <a href="http://www.advfn.com/nyse/newyorkstockexchange.asp?companies=A" rel="nofollow noreferrer">http://www.advfn.com/nyse/newyorkstockexchange.asp?companies=A</a>
  I scraped the table using beautiful soup but when I transform it to Pandas Data Frame I get an error:</p>
  <blockquote>
  <p>TypeError: 'NoneType' object is not callable</p>
  </blockquote>
  <p>I tried the following code:</p>
  <pre><code>url = 'http://www.advfn.com/nyse/newyorkstockexchange.asp?companies=A'
  res = requests.get(url)
  soup = BeautifulSoup(res.content,'lxml')
  table = soup.find(&quot;table&quot;,{&quot;class&quot;:&quot;market tab1&quot;})
  df = pd.read_html(table)
  </code></pre>
  <p>but it does not work. How do I solve it? and why do I get the error?</p>
  <p>full error log:</p>
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  ~/anaconda3/lib/python3.7/site-packages/pandas/io/html.py in _parse(flavor, io, match, attrs, encoding, displayed_only, **kwargs)
      796         try:
  --&gt; 797             tables = p.parse_tables()
      798         except Exception as caught:
  
  ~/anaconda3/lib/python3.7/site-packages/pandas/io/html.py in parse_tables(self)
      212     def parse_tables(self):
  --&gt; 213         tables = self._parse_tables(self._build_doc(), self.match, self.attrs)
      214         return (self._build_table(table) for table in tables)
  
  ~/anaconda3/lib/python3.7/site-packages/pandas/io/html.py in _build_doc(self)
      618                 # try to parse the input in the simplest way
  --&gt; 619                 r = parse(self.io, parser=parser)
      620             try:
  
  ~/anaconda3/lib/python3.7/site-packages/lxml/html/__init__.py in parse(filename_or_url, parser, base_url, **kw)
      939         parser = html_parser
  --&gt; 940     return etree.parse(filename_or_url, parser, base_url=base_url, **kw)
      941 
  
  src/lxml/etree.pyx in lxml.etree.parse()
  
  src/lxml/parser.pxi in lxml.etree._parseDocument()
  
  TypeError: 'NoneType' object is not callable
  
  During handling of the above exception, another exception occurred:
  
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-23-c3e05c494f63&gt; in &lt;module&gt;
        5 table = soup.find(&quot;table&quot;,{&quot;class&quot;:&quot;market tab1&quot;})
        6 #print(table)
  ----&gt; 7 df = pd.read_html(table)
  
  ~/anaconda3/lib/python3.7/site-packages/pandas/io/html.py in read_html(io, match, flavor, header, index_col, skiprows, attrs, parse_dates, tupleize_cols, thousands, encoding, decimal, converters, na_values, keep_default_na, displayed_only)
      985                   decimal=decimal, converters=converters, na_values=na_values,
      986                   keep_default_na=keep_default_na,
  --&gt; 987                   displayed_only=displayed_only)
  
  ~/anaconda3/lib/python3.7/site-packages/pandas/io/html.py in _parse(flavor, io, match, attrs, encoding, displayed_only, **kwargs)
      799             # if `io` is an io-like object, check if it's seekable
      800             # and try to rewind it before trying the next parser
  --&gt; 801             if hasattr(io, 'seekable') and io.seekable():
      802                 io.seek(0)
      803             elif hasattr(io, 'seekable') and not io.seekable():
  
  TypeError: 'NoneType' object is not callable
  </code></pre>
  <p>beg of table:</p>
  <pre><code>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;1&quot; class=&quot;market tab1&quot; width=&quot;610&quot;&gt;
  &lt;colgroup&gt;&lt;col/&gt;&lt;col/&gt;&lt;col class=&quot;c&quot;/&gt;&lt;/colgroup&gt;
  &lt;tr&gt;&lt;td class=&quot;tabh&quot; colspan=&quot;3&quot;&gt;&lt;b&gt;Companies listed on the NYSE&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;th&gt;Equity&lt;/th&gt;&lt;th&gt;Symbol&lt;/th&gt;&lt;th&gt;Info&lt;/th&gt;&lt;/tr&gt;
  &lt;tr class=&quot;ts0&quot;&gt;&lt;td align=&quot;left&quot;&gt;&lt;a href=&quot;http://ih.advfn.com/stock-market/NYSE/a-k-steel-AKS/stock-price&quot;&gt;A K Steel&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;http://ih.advfn.com/stock-market/NYSE/a-k-steel-AKS/stock-price&quot;&gt;AKS&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;http://ih.advfn.com/stock-market/NYSE/a-k-steel-AKS/chart&quot;&gt;&lt;img src=&quot;/s/stock-chart.gif&quot;/&gt;&lt;/a&gt;&lt;a href=&quot;http://ih.advfn.com/stock-market/NYSE/a-k-steel-AKS/news&quot;&gt;&lt;img src=&quot;/s/stock-news.gif&quot;/&gt;&lt;/a&gt;&lt;a href=&quot;http://ih.advfn.com/stock-market/NYSE/a-k-steel-AKS/financials&quot;&gt;&lt;img src=&quot;/s/fundamentals.gif&quot;/&gt;&lt;/a&gt;&lt;a href=&quot;http://ih.advfn.com/stock-market/NYSE/a-k-steel-AKS/trades&quot;&gt;&lt;img src=&quot;/s/stock-trades.gif&quot;/&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  </code></pre>