Do you know a parser which could operate on AJAX and has option to override method of connecting (I would like to use my own method to connect to pages).
The native DOM manipulation capabilities of JavaScript and jQuery are great for simple parsing of HTML fragments. However, if you actually need to parse a complete HTML or XML source in a DOM document programmatically, there is a better solution: DOMParser. It is available in all modern browsers.
You can extract data by using CSS selectors, or by navigating and modifying the Document Object Model directly - just like a browser does, except you do it in Java code. You can also modify and write HTML out safely too. jsoup will not run JavaScript for you - if you need that in your app I'd recommend looking at JCEF.
Deprecated. As of release v1. 14.1 , this class is deprecated in favour of Safelist .
LoboBrowser: http://lobobrowser.org/java-browser.jsp with this library you can run HTML and JS over Java
1) Connect to a specific URL and get the response
2) Browse the response using LoboBrowser
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With