Forum: Ruby on Rails Help getting started with hpricot

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mike (Guest)
on 2007-02-07 22:09
Hi!
I haven't really understood hpricot yet, but i s'ppose it puts the
filtered text into some kind of hash/array? What i wanna to is compare
multiple html-sources, for example:

First source
---
<tr>
<td class="content">Monday</td>
<td class="content">5</td>
</tr>
<tr>
<td class="content">Wednesday</td>
<td class="content">9</td>
</tr>
---

Second source
---
<tr>
<td class="even" style="padding: 5px">Monday<td>
<td class="even" style="padding: 5px">7</td>
</tr>
<tr>
<td class="even" style="padding: 5px">Wednesday<td>
<td class="even" style="padding: 5px">7</td>
</tr>
---

I wanna be able to filter, and via my rubyapp select "Monday", and see
that source two is better than all the other sources, becouse 7 > 5 and
3 or whatever the third source has in store for monday.

Thanks in advance!
This topic is locked and can not be replied to.