Server side browser that can execute JavaScript

后端 未结 9 1191
北海茫月
北海茫月 2021-01-05 08:05

Is there any programming libraries available that will parse an HTML document, execute JavaScript and then allow me to navigate the DOM?  This needs to be performed server s

9条回答
  •  耶瑟儿~
    2021-01-05 08:47

    in java: http://lobobrowser.org/cobra/java-html-parser.jsp
    this is a a Javascript-aware, CSS-aware HTML parser
    the most important feature in relation to your question: It is Javascript-aware. DOM modifications that occur during parsing will be reflected in the resulting DOM.

提交回复
热议问题