<tr valign="middle" align="center">
<td><b>someNumbers</b></td>
<td width="22" height="22" background="..." class="SomeIntrestingClass">xxxxx</td>
<td width="22" height="22" background="..." class="SomeIntrestingClass">xgdsx</td>
<td width="22" height="22" background="..." class="SomeIntrestingClass">xyzzx</td>
<td width="22"> </td></tr>
Im making an application that needs data from website. I need to extract the values in ‘someNumbers’ and the values in the td ex:’xyzzx’…
The problem I am having is ‘someNumbers doesn’t have a class so I tried to use doc.getElementsByAttributeValue(key, value)
but the attribute there are the same in other parts of the document. How can I extract these values using JSoup or any other bright ideas? Thanks for any advice.
Document.select(...);What this method does, we are able to use ‘css selectors’ liketd.classortr td #idand just use them as if they were css selectors in this article in Jsoup.