From: Mike Dalessio Date: 2012-10-01T21:39:59+09:00 Subject: Re: I need to know any way to read the values from a webpage table --e89a8f502ff808d24504cafeb496 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Sep 28, 2012 at 11:15 AM, Jes=FAs Gabriel y Gal=E1n < jgabrielygalan@gmail.com> wrote: > On Fri, Sep 28, 2012 at 4:15 PM, Arup Rakshit > wrote: > > Hi, > > > > I need your help to find and select the value say "Contact: Email > > Credentials" using Ruby. > > > > The source code i have attached above for the same. > > > > Please help me out here!! > > To scrape a page a good tool is Nokogiri (it's a gem). You can use > XPath or CSS selectors to read specific tags from the HTML and extract > them. I recommend you read a bit about XPath and look at the nokogiri > documentation, where there are examples. > You should watch Ryan Bates's Railscasts on this topic: http://railscasts.com/episodes/190-screen-scraping-with-nokogiri http://railscasts.com/episodes/191-mechanize --e89a8f502ff808d24504cafeb496 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Sep 28, 2012 at 11:15 AM, Jes=FA= s Gabriel y Gal=E1n <jgabrielygalan@gmail.com> wrote:=
On Fri, Sep 28, 2012 at 4:15 PM, Arup Rakshit <lists@ruby-forum.com> wrote:
> Hi,
>
> I need your help to find and select the value say "Contact: Email=
> Credentials" using Ruby.
>
> The source code i have attached above for the same.
>
> Please help me out here!!

To scrape a page a good tool is Nokogiri (it's a gem). You can us= e
XPath or CSS selectors to read specific tags from the HTML and extract
them. I recommend you read a bit about XPath and look at the nokogiri
documentation, where there are examples.

You should watch Ryan Bates's Railscasts on this topic:
http://railscasts.com/episodes/190-screen-scraping-with-nokog= iri
http://railsc= asts.com/episodes/191-mechanize

=A0
--e89a8f502ff808d24504cafeb496--