Python beautifulsoup - getting input value

后端 未结 2 1180
礼貌的吻别
礼貌的吻别 2021-01-01 15:48

I\'ve got many table rows like this:


    100
    200
    

        
2条回答
  •  攒了一身酷
    2021-01-01 16:32

    You want to find the element inside the cell, so you should use find/find_all on the cell like this:

    cells[2].find('input')['value']
    

提交回复
热议问题