python - 填充包含JavaScript代码的公式

时间:2013-06-13 16:59:16

标签: javascript python

我试图填写此表单: http://bips.u-strasbg.fr/GPAT/ 使用Python。不幸的是,它部分用JavaScript编写,所以我无法用Mechanize做到这一点。这样做的最佳方式是什么?

有问题的代码片段:

<div style="width:150px; float:left">
Species:<br>
                        <input type="radio"  name="espece" value="human" onClick="Human(this.form, this.form.genome_assembly)" /> Human
                        <br>
                        <input type="radio"  name="espece" value="mouse" OnClick="Mouse(this.form, this.form.genome_assembly)" /> mouse
                        <br>
                        <input type="radio"  name="espece" value="zebrafish" OnClick="zebrafish(this.form, this.form.genome_assembly)" /> zebrafish
                        <br>
                        <input type="radio"  name="espece" value="thaliana" OnClick="thaliana(this.form, this.form.genome_assembly)" /> A. thaliana
            <br>
                        <input type="radio"  name="espece" value="melanogaster" OnClick="melanogaster(this.form, this.form.genome_assembly)" /> D. melanogaster

                    </div>

0 个答案:

没有答案