jclh has asked for the wisdom of the Perl Monks concerning the following question:
Hey guys,
I'm trying to write a spider... and I want to "click" this "button":
<a class="ancBtn silver ancBtnL" title="Save this story to your tree" +onclick=" javascript:$trees.acceptHint('1001', '1002', '/tree/1003/hi +nts/AcceptMediaHint',this, 1003); javascript:_omnitureTracking.trackH +intAccept('[Media]:[]') ;">
What would be the easiest way to click it sending back the data the server needs?
I know WWW::Mechanize doesn't run javascript, but I read somewhere else that clicking a button doesn't necessitate running javascript, just finding out what the server is looking for and give it back.
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "Clicking" a button with WWW::Mechanize (firefox for javascript)
by Anonymous Monk on Jun 05, 2013 at 03:10 UTC | |
by jclh (Initiate) on Jun 08, 2013 at 22:41 UTC |