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
789 stars 57 forks source link

[QUESTION] Retrieving parent's next sibling? #189

Closed aaulia closed 2 years ago

aaulia commented 2 years ago

Discussed in https://github.com/skrapeit/skrape.it/discussions/188

Originally posted by **aaulia** June 30, 2022 I'm new to scrape, I can't seem to find how to retrieve text from parent's next sibling. So for example I have this HTML ```

Producer :

Foo, Bar

``` So I'm trying to reach `Foo, Bar` by first finding the `strong` element, go up to its parent, and then went down to the next sibling. How can I do this in skrape?