Is there any way I could select all the <option>s in the following HTML form <select> into a python list, like so, [‘a’,’b’,’c’,’d’]?
<select name="sel">
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
<option value="d">d</option>
</select>
Many thanks in advance.
will output
Disclaimer: Parsing HTML with regular expressions does not work in the general case.