Python beautifulsoup - Obtenir la valeur d'entrée

J'ai beaucoup de lignes de la table comme ceci:

<tr>
    <td>100</td>
    <td>200</td>
    <td><input type="radio" value="123599"></td>
</tr>

Itérer avec:

table = BeautifulSoup(response).find(id="sometable") # Make soup.

for row in table.find_all("tr")[1:]: # Find rows.
    cells = row.find_all("td") # Find cells.

    points = int(cells[0].get_text())
    gold = int(cells[1].get_text())
    id = cells[2].input['value']

    print id

Erreur:

File "./script.py", line XX, in <module>
id = cells[2].input['value']
TypeError: 'NoneType' object has no attribute '__getitem__'

Comment puis-je obtenir la valeur d'entrée? Je ne veux pas utiliser les regexp.

source d'informationauteur Mateusz Jagiełło