I'm writing a program (in Java) that needs to extract links from webpages. I'm using htmlParser (http://htmlparser.sourceforge.net/) but I'm only able to extract html links (defined with <a href="...">
) and I don't know how to handle javascript code to extract links from... can you help me??
views:
414answers:
1
+2
A:
You can use Rhino with DOM environment, written in JavaScript.
By the way it is written by John Resig.
Eldar Djafarov
2009-08-11 15:03:22
I've never played with DOM, but I'll take a look at your link, thanks.
Raffo
2009-08-12 08:49:50