JSoup 在网页上看不到 table
JSoup not sees table on web page
我想从网页中获取 table:
<table class="coupon-row-item coupone-labels">...</table>
我用
Element market = page.select("table[class=coupon-row-item coupone-labels").first();
并获得
Exception in thread "main" org.jsoup.select.Selector$SelectorParseException: Did not find balanced marker at 'class=coupon-row-item coupone-labels'
全功能
protected void getMainMarked(ArrayList<String> arrLinks) throws IOException {
Document page = Jsoup.parse(new URL(arrLinks.get(0)), 5000);
Element market = page.select("table[class=coupon-row-item coupone-labels").first();
}
我想尝试以下选择器语法(如 Jsoup documentation 中所述):
Element el = doc.select("table.coupon-row-item.coupone-labels").first();
我想从网页中获取 table:
<table class="coupon-row-item coupone-labels">...</table>
我用
Element market = page.select("table[class=coupon-row-item coupone-labels").first();
并获得
Exception in thread "main" org.jsoup.select.Selector$SelectorParseException: Did not find balanced marker at 'class=coupon-row-item coupone-labels'
全功能
protected void getMainMarked(ArrayList<String> arrLinks) throws IOException {
Document page = Jsoup.parse(new URL(arrLinks.get(0)), 5000);
Element market = page.select("table[class=coupon-row-item coupone-labels").first();
}
我想尝试以下选择器语法(如 Jsoup documentation 中所述):
Element el = doc.select("table.coupon-row-item.coupone-labels").first();