title: Unable to handle empty <td> value in web scraping
body: <p>I am scraping a wiki page, but there are some empty <code>&lt;td&gt;</code> elements in some rows, therefore I used :</p>
  <pre><code>for tr in table1.tbody:
  list = []
  for td in tr:
      try:
          if(td.text is None): list.append('NA')
          else: list.append(td.text.strip())
          
      except:
          list.append(td.strip())
  </code></pre>
  <p>to store those rows element in a list, but when I print <code>row_list</code>.</p>
  <p>Those <code>rows_list</code> with empty <code>&lt;td&gt;</code> value, which should now have append <code>'NA'</code> value, those are still empty, i.e, <code>'NA' have not appended in list</code>.</p>
  <p>How could I fix this?</p>
  <p><img src="https://i.stack.imgur.com/SCLzo.png" alt="web page I am scraping" /></p>
  <p><img src="https://i.stack.imgur.com/XDO1f.png" alt="code I have tried" /></p>