javascript - How can I get href attribute from a dynamic link using java? -
i trying extract dynamic links website couldn't extract them.
but extracted links i.e., static links website
sample code:
public class javascript { public static void main(string[] args) throws ioexception { document doc = jsoup.connect("http://economictimes.indiatimes.com/archive.cms").get(); elements links = doc.select("a[href]"); (element element : links) { system.out.println(element.attributes()); } } } now want extract dynamic links website i.e., when click on date call function , generates link. how can links using java?
jsoup html parser. has no support javascript. won't able run javascript code generating dynamic links.
use 1 of solution below (to name few) acheive goal:
Comments
Post a Comment