[twill] Can't login to MySpace

Grig Gheorghiu grig at gheorghiu.net
Tue Aug 8 08:20:50 PDT 2006


For heavy-duty Javascript sites, I recommend using a combination of
Selenium IDE and Selenium (www.openqa.org/selenium).

Grig

--- twill.overbored at spamgourmet.com wrote:

> This problem is probably much harder than I thought, due to the use
> of
> JavaScript in the intermediate login pages. Anyway, it seems that for
> such "heavy-duty" site-crawling, an engine like Gecko is indeed
> necessary.
> 
> On 8/5/06, I wrote:
> > Hi all, I'm writing this simple script to log into MySpace:
> >
> > go('http://myspace.com/')
> > fv('theForm', 'email', 'myname at myhost')
> > fv('theForm', 'password', 'mypassword')
> > submit()
> > code(200)
> >
> > However, this doesn't work (this can be verified by checking the
> > resulting page for the form 'theForm'). I can tell you that
> > redirections and cookies are used between the submit() and code()
> > calls. However, after spending several hours using Ethereal and
> trying
> > to analyze the differences between the HTTP traffic from twill and
> > Firefox, I've given up (having never done packet analysis before,
> I'm
> > extremely inefficient at this). Hopefully someone knows what's
> > up....or even better, a workaround! Thanks a ton in advance.
> >
> > (Since this tool has never been mentioned on this mailing list
> before,
> > I'll mention that I am currently trying to get around this by using
> > Chickenfoot, http://groups.csail.mit.edu/uid/chickenfoot/. But
> while I
> > now have full Firefox power, I think all I really need is correct
> > stateful browsing. Also, JavaScript sucks.)
> >
> 
> _______________________________________________
> twill mailing list
> twill at lists.idyll.org
> http://lists.idyll.org/listinfo/twill
> 




More information about the twill mailing list