------ art_49029_66695.1168796817682 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I've been successfully using Selenium (check out openqa.org) to do similar (and more complex) web page interactions, querying etc. on both Linux and Windows, using Ruby to drive things. If written thoughtfully, it's very easy to get code that runs on both platforms without any code-changes required to migrate between the two. You get a nice '@selenium' object which has a large set of methods you can use. Apologies in advance if you already knew about this. Kp. On 1/14/07, Rodrigo Bermejo <rodrigo.bermejo / ps.ge.com> wrote: > > Vikash Kumar wrote: > >> require 'net/http' > >> > >> # read the page data > >> > >> http et::HTTP.new('kvcrpf.org, 80) > >> resp, page ttp.get('/achievements.htm', nil ) > >> > >> # BEGIN processing HTML > >> > > > > The code given above can be used to extract values from a web page, I we > > don't have to login to a web page, we know in advance which URL to look > > for to get data from it, but the problem is to first login to a page, > > then go to some desired location to scrap values from it. > > > > Please help me out in doing this. > > Thanks in advance > > Vikash > > There are a few ways of doing this <I am on hurry now to elaborate>, if > your are on windows watir[1] can help you out doing the login stuff, may > the tricky part is how to get the data, but I am sure there is a method > which allows you to extract the hole HTML > > > http://wtr.rubyforge.org/ > > $rm rm > .rb > > -- > Posted via http://www.ruby-forum.com/. > > -- "I refuse to prove that I exist," says God, "for proof denies faith, and without faith I am nothing." "But," says Man, "the Babel fish is a dead giveaway isn't it? It could not have evolved by chance. It proves that you exist, and so therefore, by your own arguments, you don't. Q.E.D." "Oh dear," says God, "I hadn't thought of that," and promptly vanishes in a puff of logic. "Oh, that was easy," says Man, and for an encore goes on to prove that black is white and gets himself killed on the next zebra crossing. ------ art_49029_66695.1168796817682--