title: 'NoneType' object is not callable: BeautifulSoup HTML parsing
body: <p>I am trying to parse an HTML table in a webpage, which I passed to BeautifulSoup as a string input. I have given the following script to parse the HTML page and print the contents in a CSV file:</p>
  
  <pre><code>soup = BeautifulSoup(In_put)
  comments = soup.find_all('td', {"id": "TicketDetails_TicketDetail_TicketDetail__ctl0_Tablecell1"})
  f = open(Out_put, 'w')
  writer = csv.writer(f)
  for s in comments:
      writer.writerow(s.split('##'))
  f.close()
  </code></pre>
  
  <p>But it shows an error saying:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/KOS974/PycharmProjects/test_cases/gasper_try.py", line 561, in &lt;module&gt;
      writer.writerow(s.split('##'))
  TypeError: 'NoneType' object is not callable
  </code></pre>
  
  <p>I am really not able to understand why the error is coming, even after there is some content in the <code>&lt;tr&gt;</code> tag with the same <code>id</code>.</p>