mardi 29 septembre 2020

Scrape text from selected option from dropdown

How to get the text of selected option from HTML structure using python?

<select class="required" id="PPT" name="PPT">
<option value="">Paying Term</option>
<option selected="selected" value="0-10">0-10 Years</option>
<option value="10-20">10-20 Years</option>
<option value="20-30">20-30 Years</option>
<option value="30-40">30-40 Years</option>
</select>



Aucun commentaire:

Enregistrer un commentaire