I have a main Div tag with multiple div tags as below. The child Div tags have no class/id that distinguishes from the other child div tags. Now I want to extract the text value from the 2nd child Div tag. How can i do that?
<div class="logFor" style="position: relative; height: 101px; padding: 5px;">
<div style="color: #6b6b6b; font-weight: bold;">This is a monster</div>
<div style="overflow: hidden; height: 28px; margin-top: 3px; color: #1b1f2e;">Monster in Black</div>
<div style="position: absolute; left: 5px; bottom: 0;">
<div style="position: absolute; right: 5px; bottom: 0;">
</div>
I want to get the text “Monster in Black”. This Div doesnt have an id/name and not sure if this style would be same or change. How would i extract using jSoup?
Produces: