title: Can't figure out how to parse table row and certain columns and export to CSV
body: <p>First, let me admit that I'm a novice with Ruby.  I've only used it for a few days but with reasonable success.  I've been able to parse certain items that exist singularly in multiple HTML files and export to CSV; however, I'm stuck with parsing an entire table of data on multiple HTML files.  I was able to pull more than I needed but the resulting CSV export had all of each HTML file's data as an array within a single cell of the CSV.</p>
  
  <p>Here is a simplified version of the data that I'm looking at (about 20-30 rows of this repeated on each page):   </p>
  
  <pre><code>  &lt;tbody id="threadbits_forum_406"&gt; 
    &lt;tr&gt;
      &lt;td class="alt1" id="td_threadstatusicon_######"&gt; IMG &lt;/td&gt; 
      &lt;td class="alt2" align="center" valign="middle"&gt; 
        &lt;a href="http://I.NEED.THIS"&gt;
            &lt;div style="height:75px; width:150px; overflow:hidden; background:url(http://I.NEED.THIS/TOO) center 25%;"&gt; &lt;/div&gt;
        &lt;/a&gt; 
       &lt;/td&gt; 
       &lt;td class="alt1" id="td_threadtitle_######" title="blah"&gt;[...]&lt;/td&gt; 
       &lt;td class="alt2" title="blah"&gt; &lt;div class="smallfont" style="text-align:right; white-space:nowrap"&gt; &lt;a href="dontcare"&gt; &lt;/a&gt; &lt;/div&gt; &lt;/td&gt; 
       &lt;td class="alt1" align="center"&gt;[...]&lt;/td&gt; 
       &lt;td class="alt2" align="center"&gt;[...]&lt;/td&gt;
    &lt;/tr&gt;
  </code></pre>
  
  <p>Since the class of the column is used a couple times, I'm having trouble understanding what CSS or XPATH tricks to use to pull out the background picture in the DIV and the HREF link that is on just that second column.  The DIV doesn't have a class like the one used in the other column.</p>
  
  <p>If someone can  give me a little guidance, I'd appreciate it!</p>