0

Trying to capture information about products and all inner elements giving me the empty value. I changed my request to Async and i still have html-page with no loaded information. Html is incomplete. How to solve that problem?

CloseableHttpAsyncClient client = HttpAsyncClients.createDefault();
    client.start();


    SimpleHttpRequest request = SimpleHttpRequests.get("http://flashdeals.aliexpress.com/en.htm");


    Future<SimpleHttpResponse> future = client.execute(request, null);
    SimpleHttpResponse response = future.get();

    System.out.println(response.getCode());

    String htmlCode = response.getBodyText();



    Document doc = Jsoup.parse(htmlCode);


    Elements rows = doc.select(".deals-list");


    System.out.println(rows);


    client.close();

}
4

0 回答 0