I have webpage1.html which has a hyperlink whose href=”some/javascript/function/outputLink()”
Now, using curl (or any other method in php) how do I deduce the hyperlink (of http:// format) from the javascript function() so that I can go to next page.
Thanks
You’d have to scrape the JavaScript. Figure out where the function is and see what URL it’s using.
Sometimes
http://is omitted for links that are on the same page, so that won’t be a good search reference.At this point the only valuable thing to do is to try and understand the JavaScript code yourself, and once you find the link you could use regex to filter the result programmatically with PHP.