vendredi 9 juin 2017

how to get names of checkbox(created in html) in python

<table><tbody>
<tr><td width="90%">Vidya<audio controls><source src="Vidya .mp3" type="audio/mpeg">Your browser does not support the audio element. </audio> <input type="checkbox" name="W" value="w"></td></tr>

<tr><td width="90%">Yeh<audio controls><source src="Yeh .mp3" type="audio/mpeg">Your browser does not support the audio element. </audio> <input type="checkbox" name="X" value="x"></td></tr>

<tr><td width="90%">Jawaani<audio controls><source src="Jawaani.mp3" type="audio/mpeg">Your browser does not support the audio element.</audio> <input type="checkbox" name="Y" value="y"></td></tr>

</tbody>
</table>

How do you use python to find the names of all the checkboxes in an html file?

For example, I have the html snippet below. How can I write a python program to find all the names of these checkboxes (so that I can also find the values?

Alternately, is there a way to delete each based on these names/values collected through python?

Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire