1
我想为我的项目提供一些帮助。我需要在论坛上获得信息(医学问题)http://www.safeboy.net/club/index.php?
。通过Jsoup在网站上登录
但我有一个问题,对于这些信息,我需要在论坛上连接。
但是我是Jsoup的新手,我不太熟悉Jsoup,所以我在这里得到一些帮助,如果你能指教我,它会很好!
Connection.Response loginForm = Jsoup //
.connect("http://www.safeboy.net/club/club.php?") //
.method(Method.GET) //
.execute();
Document document = Jsoup.connect("http://www.safeboy.net/club/club.php?")
.data("pseudo", "EDDFSB")
.data("password", "cacapopo1").method(Method.POST)
.cookies(loginForm.cookies())
.post();
System.out.println(document);