First of all, there is no need for all the list comprehensions; yours do nothing but copy the results, you can safely do without them.
There is no next sibling in your column (there is only one<td> tag), so it returns None. You wanted to get the .next attribute from the title (the <strong> tag) instead:
fortablein soup.findAll('table', attrs = {'class':'box-content-list'}):
for row intable.findAll('tr',attrs={'class':'first'}):
for col in row.findAll('td'):
title = col.strong
status = title.nextSibling
print title.text.strip(), status.strip()
Post a Comment for "Beautiful Soup Returns None"