Parse result page

how to fetch a page then enter some text parse the results page and
display it for ex:google please could i get piece of code with step
explained it would be great help.

Hi,

On Sun, May 27, 2012 at 3:48 PM, Prajwal B. [email protected]
wrote:

how to fetch a page then enter some text parse the results page and
display it for ex:google please could i get piece of code with step
explained it would be great help.


Posted via http://www.ruby-forum.com/.

You can use mechanize [1] to fetch the page and nokogiri [2] to parse
result.

Hope that I can help you.

[1] http://mechanize.rubyforge.org/
[2] http://nokogiri.rubyforge.org/

could you ive me a piece ofcode

like how to search a text in google and click the button parse the
result
page and display it. i am not understanding how to use both together