How to programmatically access web page in java

后端 未结 5 1431
无人及你
无人及你 2021-01-30 18:17

There is a web page from which I want to retrieve a certain string. In order to do so, I need to login, click some buttons, fill a text box, click another button - and then the

5条回答
  •  被撕碎了的回忆
    2021-01-30 18:43

    Well when you press a button usually you do a request via a HTTP POST method, so you should use HttpClient to handle request and HtmlParser to handle the response page with the string you need.

提交回复
热议问题