Why Jsoup cannot select td element?

后端 未结 3 1633
执笔经年
执笔经年 2021-01-25 01:21

I have made little test (with Jsoup 1.6.1):

String s = \"\" +Jsoup.parse(\"\").select(\"td\").size();
System.out.println(\"Selected elements         


        
3条回答
  •  温柔的废话
    2021-01-25 02:05

    String url = "http://foobar.com";
    Document doc = Jsoup.connect(url).get();
    Elements td = doc.select("td");
    

提交回复
热议问题