简体   繁体   English

提交 HTML 表格并通过 Python 解决验证码

[英]Submit an HTML form and solve captcha via Python

It is possible to submit an HTML form through Python and then validate a captcha on the page after submitting the form?是否可以通过 Python 提交 HTML 表单,然后在提交表单后在页面上验证验证码? Where I can start?我可以从哪里开始?

Thank you in advance for your reply.预先感谢您的回复。

Your question is a bit ambiguous.你的问题有点模棱两可。 If what you want to do is make a python script fill up an HTML form somewhere online and then fill in the captcha as well, then it shouldn't be possible.如果您要做的是让 python 脚本在网上某处填写 HTML 表格,然后也填写验证码,那么这应该是不可能的。 That is the whole point of a captcha, to prevent bots and scripts from spamming forms.这就是验证码的重点,以防止机器人和脚本向 forms 发送垃圾邮件。

But instead if what you mean is that you want to use python to validate an HTML form you have made to use somewhere then you should look into some python backend frameworks like Django or Flask. But instead if what you mean is that you want to use python to validate an HTML form you have made to use somewhere then you should look into some python backend frameworks like Django or Flask. With these frameworks you can connect front end HTML,CSS,JS etc. to backend logic and have validation for custom forms and use captchas and stuff.使用这些框架,您可以将前端 HTML、CSS、JS 等连接到后端逻辑,并验证自定义 forms 并使用验证码等。

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

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