دنبال کننده ها

۱۳۹۶ بهمن ۱۲, پنجشنبه

java - Extract from HTML with JSoup

[ad_1]



I'm new in Jsoup an i'm trying to scrap some datas from website using Jsoup.
I want to extract only datas under specific <data-id> node.
this is the webpage structure



<tr data-id="13">
<td class="th">Dimension</td>
<td class="l">152.5x82x9.8mm (6x3.23x0.39")</td>
</tr>
<tr class="even" data-id="15">
<td class="th">Weight</td>
<td class="l">190gr (6.7oz)</td>
</tr>
<tr class="h" data-id="116">
<td class="th">Ringtone</td>
<td class="l"></td>
</tr>


I need to get something like this




  1. Dimension

  2. 190gr

  3. Ringtone
    Please Help me.



PS: I'm using Java.




[ad_2]

لینک منبع