title: Specifying what data to scrape - Jsoup + Android Studio
body: <p>I am using JSoup to scrape data and display in on my phone using android studio. I have code that will scrape all the <code>&lt;td&gt;</code> tags however i am not trying to scrape them all, just certain ones in a certain order. </p>
  
  <pre><code>  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/td&gt;
  &lt;/tr&gt;&lt;tr&gt;
  &lt;td&gt;
  &lt;table cellspacing='0' border='0' width='100%' &gt;
  &lt;col align='left' /&gt;&lt;col align='center' /&gt;&lt;col align='right' /&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;
  </code></pre>
  
  <p>Also when it displays on my phone the <code>&lt;td&gt;</code> is being displayed and I don't want them to. I don't want to scrape any of the <code>&lt;td&gt;</code> tags from the html above</p>
  
  <pre><code>&lt;td   bgcolor='#C0C0C0' colspan='1'&gt;&lt;font color='#FFFFFF'&gt;9:00&lt;/font&gt;&lt;/td&gt;
      &lt;td   bgcolor='#C0C0C0' colspan='1'&gt;&lt;font color='#FFFFFF'&gt;9:15&lt;/font&gt;&lt;/td&gt;
      &lt;td   bgcolor='#C0C0C0' colspan='1'&gt;&lt;font color='#FFFFFF'&gt;9:30&lt;/font&gt;&lt;/td&gt;
      &lt;td   bgcolor='#C0C0C0' colspan='1'&gt;&lt;font color='#FFFFFF'&gt;9:45&lt;/font&gt;&lt;/td&gt;
  </code></pre>
  
  <p>Above and below is the HTML I want to scrape.</p>
  
  <pre><code>&lt;tr &gt;
      &lt;td style="border-bottom:3px solid #000000;" rowspan='1' bgcolor='#C0C0C0'&gt;&lt;font color='#FFFFFF'&gt;Mon&lt;/font&gt;&lt;/td&gt;
      &lt;td style="border-bottom:3px solid #000000;"  colspan='12' rowspan='1' &gt;
  
  &lt;table  cellspacing='0' border='0' width='100%'&gt;
    &lt;col align='left' /&gt;
  &lt;tr&gt;
    &lt;td align='left'&gt;&lt;font color='#FF0000'&gt;Sounds&lt;/font&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;table  cellspacing='0' border='0' width='100%'&gt;
    &lt;col align='left' /&gt;
    &lt;col align='right' /&gt;
  &lt;tr&gt;
    &lt;td align='left'&gt;&lt;font color='#000000'&gt;P0000&lt;/font&gt;&lt;/td&gt;
    &lt;td align='right'&gt;&lt;font color='#008000'&gt;P.Man&lt;/font&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>What I want it to display is "Mon" then "9:00" then "Sounds" then "P0000" and then "P.Man. </p>
  
  <p>This is the code I have atm. Any one any clues? read the documentation.</p>
  
  <pre><code> Elements tableElements = doc.select("td");
                  for (Element td : tableElements) {
                      buffer.append("TT [" + td + "] \r\n");
                      Log.d("JSwA", "TT [" + td + "]");
                  }
              }
  </code></pre>