我试图填写此表单: 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>