Get next element #668
Answered
by
ziflex
JohnnyQQQQ
asked this question in
Q&A
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.
Answered by
ziflex
Jun 13, 2019
Replies: 2 comments
-
Try something like this
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ziflex
-
@ziflex thanks alot for the quick answer, works perfectly fine! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try something like this