1
我需要在我的python腳本中解析HTML。然而,要在我的瀏覽器中訪問我需要的頁面,請單擊單選按鈕並提交表單。那麼,我如何使用python提交表單並獲取呈現的html?謝謝,我會很感激任何幫助。用python提交表格
我談論的形式:
<form id="ac" method="post">
<input type="radio" id="a" name="a" value="2" onchange="document.getElementById('ac').submit();" checked="checked">
<input type="radio" id="aa" name="a" value="1" onchange="document.getElementById('ac').submit();">
<input type="radio" id="aaa" name="a" value="0" onchange="document.getElementById('ac').submit();">
</form>
感謝。有效。 – Yevs 2013-05-07 19:01:14