------art_33100_27521176.1175239737959
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

And thanks a lot to Peter Szinek.
You have given the right direction for my query. You answer replies to what
exactly wanted to know.
Thanks a lot.
And finally I love ruby.
Sachin.

On 3/30/07, Peter Szinek <peter / rubyrailways.com> wrote:
>
> Sachin Gadkar wrote:
> > Hi Ruby_pals,
> > Say, I have login and password for an account.
> > Is it possible to get logged into it through a ruby code.
>
> One way is to use scRUBYt!:
>
> > rubyforge_data  crubyt::Extractor.define do
>    fetch          'http://rubyforge.org/'
>    click_link     'Log In'
>    fill_textfield 'form_loginname', '*login_here*'
>    fill_textfield 'form_pw', '*pass_here*'
>    submit 0
>
>    stuff 'My Personal Page'
>
> end
> >
> Or you can use WWW::Mechanize (scRUBYt! is also built on Mechanize) to
> do the same thing. If you would like to also scrape something there, I
> would suggest scRUBYt!, otherwise Mechanize is the way to go.
>
> Cheers,
> Peter
> _
> http://www.rubyrailways.com :: Ruby and Web2.0 blog
> http://scrubyt.org :: Ruby web scraping framework
> http://rubykitchensink.ca/ :: The indexed archive of all things Ruby
>
>


-- 
sachin.gadkar / gmail.com

URL : http://nichas143.tripod.com

------art_33100_27521176.1175239737959--