خرید بک لینک

Vote count: 0

I am using JSoup to scrape data and display in on my phone using android studio. I have code that will scrape all the tags however i am not trying to scrape them all, just certain ones in a certain order.

  </tr>
</table>
</td>
</tr><tr>
<td>
<table cellspacing='0' border='0' width='100%' >
<col align='left' /><col align='center' /><col align='right' />
  <tr>
    <td></td><td></td><td></td>

Also when it displays on my phone the is being displayed and i don't want them to. I dont want to scrape any of the tags from the html above

<td   bgcolor='#C0C0C0' colspan='1'><font color='#FFFFFF'>9:00</font></td>
    <td   bgcolor='#C0C0C0' colspan='1'><font color='#FFFFFF'>9:15</font></td>
    <td   bgcolor='#C0C0C0' colspan='1'><font color='#FFFFFF'>9:30</font></td>
    <td   bgcolor='#C0C0C0' colspan='1'><font color='#FFFFFF'>9:45</font></td>

Above and below is the HTML i want to scrape.

<tr >
    <td style="border-bottom:3px solid #000000;" rowspan='1' bgcolor='#C0C0C0'><font color='#FFFFFF'>Mon</font></td>
    <td style="border-bottom:3px solid #000000;"  colspan='12' rowspan='1' >

<table  cellspacing='0' border='0' width='100%'>
  <col align='left' />
<tr>
  <td align='left'><font color='#FF0000'>Sounds</font></td>
</tr>
</table>
<table  cellspacing='0' border='0' width='100%'>
  <col align='left' />
  <col align='right' />
<tr>
  <td align='left'><font color='#000000'>P0000</font></td>
  <td align='right'><font color='#008000'>P.Man</font></td>
</tr>
</table>

What i want it to display is "Mon" then "9:00" then "Sounds" then "P0000" and then "P.Man.

This is the code i have atm. Any one any clues? read the documentation.

 Elements tableElements = doc.select("td");
                for (Element td : tableElements) {
                    buffer.append("TT [" + td + "] ");
                    Log.d("JSwA", "TT [" + td + "]");
                }
            }

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 29 فروردين 1395 ساعت: 2:31

صفحه بندی