| [reply] |
Read the JavaScript code, look at what it does, and do the same from Mech. It probably just sets a field or two in the form, which is easy from Mech. | [reply] |
You should have a look at WWW::Selenium, an interface to the excellent Selenium Remote Control. Combine it with the automatic Perl code generation of the Selenium IDE Firefox plugin, and writing code that navigates websites is as easy as just clicking through the site. There's even a Test:: module available, if you're wanting to unit test your site.
(No, I'm not affiliated withe OpenQA, I just use their code a lot at work)
| [reply] |
hey thanks for the help guys, i looked at the Mozilla::Mechanize but when i tried to install it it boiled down to missing Glib and when i tried installing that the following error came up....
GObject.xs:980: error: `G_TYPE_INITIALLY_UNOWNED' undeclared (first use in this function)
GObject.xs:980: error: (Each undeclared identifier is reported only once
GObject.xs:980: error: for each function it appears in.)
make: *** GObject.o Error 1
/usr/bin/make -- NOT OK
this happened before when i tried installing a soulseek client for linux.
anyway im going to try the WWW::Selenium next
| [reply] |
For this limited of a use of javascript, I think you'd be better off trying HTTP::Recorder.
| [reply] |