Get next element #668
-
I try to scrape the "Age" of the following DOM <div id="container">
<span>Name</span>
<span>Peter Parker</span>
<span>Age</span>
<span>23</span>
</div> The problem is, I don't have any ID or class I can reference. My question is, how is it possible to access the age? The amount of spans is always varrying. My idea was something like this:
I couldn't find any direction to a solution regarding the syntax by looking into the docs, as there is not much regarding this topic. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Try something like this
|
Beta Was this translation helpful? Give feedback.
-
@ziflex thanks alot for the quick answer, works perfectly fine! |
Beta Was this translation helpful? Give feedback.
Try something like this