skrapeit / skrape.it

A Kotlin-based testing/scraping/parsing library providing the ability to analyze and extract data from HTML (server & client-side rendered). It places particular emphasis on ease of use and a high level of readability by providing an intuitive DSL. It aims to be a testing lib, but can also be used to scrape websites in a convenient fashion.
https://docs.skrape.it
MIT License
813 stars 59 forks source link

[QUESTION] #242

Open ismai117 opened 4 months ago

ismai117 commented 4 months ago

Hi, I'm trying to pull data from a table element, but I'm unable to retrieve the child elements.


table {
  findAll {
          print(html) //  <table cellpadding="0" cellspacing="0" border="0" class="" id="caffeinedb"></table>
       }                  
  }
}

table {
  findAll {
        tbody {
               forEach {
                       print(it) // <table cellpadding="0" cellspacing="0" border="0" class="" id="caffeinedb"></table>
                 }
            }
       }                  
  }
}

Screenshot 2024-06-04 at 02 12 31