ruippeixotog / scala-scraper

A Scala library for scraping content from HTML pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implementation of Jsoup ownText

mBaratta96 opened this issue · comments

Hello,
maybe I missed it, but I can't find any way to get the same results as Jsoup ownText method. It would be very useful since I'm in this condition:

<li> Text I want 1
  <ol>
    <li>...</li>
    <li>...</li>
    <li>...</li>
  </ol>
</li>
<li> Text I want 2
  <ol>
    <li>...</li>
    <li>...</li>
    <li>...</li>
  </ol>
</li>

Unfortunately, using text makes me have the entire text of the first <li> elements and that's not what I want.