Want to create a form filler - is java, jsp, html

2020-04-27 07:27发布

Summary - Want to make a simple website form filler. The website is NOT mine and I cannot edit its source code. Don't know what tools/languages are needed. Would java, jsp, html be enough ?

Request - Please reconsider your decision to close or downvote. I only need to know if java is enough or not.

There is a form on a website, say for reserving a visit to only one dentist. You fill your details and the date and time you want to visit. Then, it tells you if an appointment can be made or not, somewhere in the webpage.

This web page is NOT protected by CAPTCHA. I don't want to enter my details all the time to look for a reservation. I want to make code to do it for me.

I want to make code which will -

1 - Fill the details into the form and "press" submit.
2 - Then, read the resulting page and find out if a reservation is 
    available or not. If yes, do something like maybe - pop up a GUI 
    message, send e-mail or whatever.
3 - Repeat the above steps every 5 hours or so.

What are the languages and tools I would need to do this job ? Would I need more than java, jsp and html (thats all i know now) to make such code ?

Thanks.

标签: java web
3条回答
够拽才男人
2楼-- · 2020-04-27 07:39

IMO, If you really just want to fill up some forms to check a reservation, no need to code anything, why not just install a plugin, Selenium, record your actions there and just run it at specified times: http://docs.seleniumhq.org/

查看更多
贪生不怕死
3楼-- · 2020-04-27 07:39

Sure.

You need a web server and a database on the back end.

Since you feel comfortable with Java, JSP/HTML would probably be an ideal solution.

IMHO...

查看更多
欢心
4楼-- · 2020-04-27 07:57

I will suggest you try CURL. That will make you solution more simple in my opinion.

You can execute HTTP GET/POST with CURL, which is enough to solve your problem. Give it a try, and if you get block you can ask a more specific question about CURL or HTTP.

Hope it helps.

查看更多
登录 后发表回答