【发布时间】:2021-03-16 14:13:35
【问题描述】:
我想使用 bash 脚本自动填写网站上的 web 表单:http://www.epncb.oma.be/_productsservices/coord_trans/index.php,并从输出文本框中检索结果。
我试过了:
curl -d from_frame_in="values" -d from_epoch_year="values" -d from_epoch_decimal="values" -d inputvalues="values" -d to_frame_out="values" -d to_epoch_year="values" -d to_epoch_decimal="values" -d transform_button="values" "$websiteurl".
但是,epoch drop list没有被选中,只有frame drop list和input text box得到了值。
我也试过了:
wget --post-data 'from_frame_in=values&from_epoch_year=values&from_epoch_decimal=values&inputvalues=values&to_frame_out=values&to_epoch_year=values&to_epoch_decimal=values&transform_button=values' "$websiteurl".
这个脚本可以让所有的下拉列表和输入文本框获取值。 但是对于上面提到的两种方法,我不知道如何从输出文本框中检索计算结果。
如果有人可以帮助我或为我指出解决此类问题的方向,我将不胜感激。
【问题讨论】: