Fetch contents(loaded through AJAX call) of a web page

Jsoup is a html parser only. Unfortunately it’s not possible to parse any javascript / ajax content, since jsoup can’t execute those.

The solution: using a library which can handle Scripts.

Here are some examples i know:

If such a library doesn’t support parsing or selectors, you can at least use them to get Html out of the scripts (which then can be parsed by jsoup).

Leave a Comment