简体   繁体   English

如何使用python填充和提交html文本框

[英]how to fill and submit html text box's with python

is there a pythonic way to fill and submit a website's text box if i have the URL for the website and the id for the textbox如果我有网站的 URL 和文本框的 id,是否有一种 pythonic 方式来填充和提交网站的文本框

such as this one比如这个

<input id="nickname">

Of course.当然。 You need the endpoint where the form is sent and send the data with the same params.您需要发送表单的端点并使用相同的参数发送数据。 As a recomendation try to right-click on button and inspect the url where the form is sent.建议尝试右键单击按钮并检查发送表单的网址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM