in reply to can't get WWW::Mechanize to sign in on JustAnswer

Can someone help me figure out a way to get this to work on their site? I really could use some help here. I just can't figure out how to get this script to work for me.

Instructions on how to figure it out are at Re^7: Perl Mechanize - Header Help required.

  • Comment on Re: can't get WWW::Mechanize to sign in on JustAnswer

Replies are listed 'Best First'.
Re^2: can't get WWW::Mechanize to sign in on JustAnswer
by Anonymous Monk on May 26, 2011 at 14:29 UTC
    That link you referenced really doesn't directly or even indirectly address the problem I am having. I'm not new to Mechanize, I've created dozens of bots with it over the years but this is the first time I've been in a situation where JS is messing up my login.
      That link you referenced really doesn't directly or even indirectly address the problem I am having. I'm not new to Mechanize, I've created dozens of bots with it over the years but this is the first time I've been in a situation where JS is messing up my login.

      Did you know that WWW::Mechanize does not support javascript? Take look at the links in the link I referenced, that is the way to solve every Mechanize problem, esp JS problems.

Re^2: can't get WWW::Mechanize to sign in on JustAnswer
by Anonymous Monk on May 26, 2011 at 17:41 UTC
    I have to disagree with the Anony monk who posted the link. It really doesn't help in your situation. I wish I could help you but I've dealt with javascript and this module before and it is never pretty. Hopefully another monk will be able to assist you.
      I have to disagree with the Anony monk who posted the link. It really doesn't help in your situation. I wish I could help you but I've dealt with javascript and this module before and it is never pretty. Hopefully another monk will be able to assist you.

      How do you figure?

        If you're the first Anonymous Monk then I have also clicked your link and didn't find that it addressed what the OP was looking for. It's a helpful link and all but it won't fix the problem.

        I went to the site and looked at the source code. The problem here is JustAnswer has missed some logic in their JavaScript code. When you turn off JavaScript it shows the SIGN UP form and never lets you see the sign IN form.

        Best thing to do is let them know they have a bug in their code and wait for them to fix it. Then your code should work fine.