I need to scrape a website with content \'inserted\' by Angular. And it needs to be done with java.
I have tried Selenium Webdriver (as I have used Selenium before
Here is the perfect Solution to scrap any web page with JSoup & WebDriver with java
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--headless");
WebDriver driver = new romeDriver(chromeOptions);
driver.get(bean.getDomainQuery().trim());
Document doc = Jsoup.parse(driver.getPageSource());
And then use JSoup selectors to read any tag info