0

I want to get a table from a web page:

<table class="coupon-row-item coupone-labels">...</table>

I use

Element market = page.select("table[class=coupon-row-item coupone-labels").first();

And get

Exception in thread "main" org.jsoup.select.Selector$SelectorParseException: Did not find balanced marker at 'class=coupon-row-item coupone-labels'

Full function

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();
}
MartenCatcher
  • 2,713
  • 8
  • 26
  • 39

1 Answers1

0

I suppose to try following selector syntax (as described in Jsoup documentation):

Element el = doc.select("table.coupon-row-item.coupone-labels").first();
Daniil
  • 913
  • 8
  • 19