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.
Jesus.
···
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.
You should watch Ryan Bates's Railscasts on this topic:
···
On Fri, Sep 28, 2012 at 11:15 AM, Jesús Gabriel y Galán < 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 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.