Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: can't get WWW::Mechanize to sign in on JustAnswer

by Anonymous Monk
on May 28, 2011 at 01:27 UTC ( [id://907089]=note: print w/replies, xml ) Need Help??


in reply to Re^4: can't get WWW::Mechanize to sign in on JustAnswer
in thread can't get WWW::Mechanize to sign in on JustAnswer

The Firefox browser supports javascript.

LiveHttpHeaders addon shows you the HTTP Request that gets sent so you don't have to reverse-engineer the javascript.

Then simply get Mechanize to send the same HTTP Request, either through Mechanize calls, or by crafting a custom HTTP::Request.

Or simply use WWW::Mechanize::Firefox.

No, these instructions are not a solution to the OPs exact problem (not a fish), instead, they're the solution to every such problem (instructions on how to fish).

Like Corion says, javascript is not magical

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://907089]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-29 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found