Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Free Java HTML and JS parser

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).

like image 640
oneat Avatar asked Jun 07 '10 16:06

oneat


People also ask

Can JavaScript parse HTML?

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.

Does jsoup support JavaScript?

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.

Is jsoup deprecated?

Deprecated. As of release v1. 14.1 , this class is deprecated in favour of Safelist .


1 Answers

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
like image 100
DuduAlul Avatar answered Oct 28 '22 17:10

DuduAlul