简体   繁体   English

用Jsoup解析复杂表

[英]Parsing complex table with Jsoup

I am trying to parse this webpage https://bugzilla.mozilla.org/show_bug.cgi?id=787150 using jsoup in java. 我正在尝试使用Java中的jsoup解析此网页https://bugzilla.mozilla.org/show_bug.cgi?id=787150

But I am facing the issue of parsing the table that tag with edit_form. 但是我面临着用edit_form解析标记该表的问题。

Try this code to select the table with edit_form class name. 尝试使用此代码选择带有edit_form类名的表。

try
{
    Document doc = Jsoup.connect("https://bugzilla.mozilla.org/show_bug.cgi?id=787150").get();
    System.out.println("doc"+doc.select("form[id$=changeform]").select("table.edit_form"));

}
catch(Exception e){}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM