Jsoup甚至没有选择您在邮递员中看到的信息

时间:2019-04-01 14:58:04

标签: java jsoup

这是我尝试从中获取<tbody>信息的方式。在控制台中什么也不会打印,如果我选择<td>标签,只会打印<thead>中的信息。

image of postman

final String url = "https://debt.reestri.gov.ge/ipove_movale.php?search=&fname=&lname=&orgname=&idno=60001050665";

        System.out.println("===================================");

        Document doc = Jsoup
                .connect(url)
                .userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0")
                .get();


        Elements elements1 = doc.select("tbody");


        System.out.println(elements1.text());
        System.out.println("===========");
        System.out.println(elements1.html());
        System.out.println("===========");
        System.out.println(elements1.outerHtml());
        System.out.println("===========");
        System.out.println(elements1.eachText());

0 个答案:

没有答案