Hi fellow Monks,
I'm trying to figure out how I can get a webpage and render the JavaScript on that page and then take action based on what is rendered from the JS.
I've pretty much figured out how to get the webpage with LWP and some related modules. I haven't figured out how to make perl interpret the JavaScript on the pages. Can someone help me here?
Some background in case I'm doing this completely wrong. My friend wants a script that will log into his Belkin F5D7230-4 router and grab the WAN IP and then publish write that to a file on an external webserver he manages. He's not interested in using dyndns, whatsmyip.com or similar services.
I think I'm logging into the router correctly, but the index.html page is full of JavaScript that needs to be interpreted first before any meaningful information can be obtained.
So if there's a better way to get this guy's external IP address for him within the constraints provided, please let me know that too.
Thanks in advance.
In reply to Interpert/render JavaScript from a page by xorl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |