On Wed, Dec 9, 2009 at 8:47 AM, Robert lzw <[email protected]> wrote:
> Hi, folks,
>
> I want to use Hpricot to get data out of a table of the following web page:
> http://tubic.tju.edu.cn/deg/information-e.php?ac=DEG20010958
>
> and save it into a SQL database with DB field names such as "Accession
> Number", "GeneName" (corresponding to the first column of the table)
> [their respective values would be "DEG20010958", "RPO31",
> respectively, in the second column of table to be extracted using
> hpricot).
>
> This is a pretty old web page. I have two questions:
> (1) I can not find a unique selector/class ID for extracting the
> values (second column of the table). I guess I missed something. How
> can I do it?
> (2) It seems that ActiveRecord should be used to put the extracted
> data (values) into the SQL database. Is this the right approach for
> it? If so, where can I find good resource to refer to as I am not
> familiar with ActiveRecord or techniques similar to it.
>
> Any hints would be highly appreciated.
>
> Thank you very much,

This has nothing to do with Wt though.  Have you tried asking on an
Hpricot mailing list?

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to