I\'ve got many table rows like this:
100
200
-
soup = BeautifulSoup(html)
try:
value = soup.find('input', {'id': 'xyz'}).get('value')
except:
pass
讨论(0)
-
You want to find the <input> element inside the cell, so you should use find/find_all on the cell like this:
cells[2].find('input')['value']
讨论(0)
- 热议问题