There is such html code:

<div class="adview_image__content"> <img class="adview_image__base adview_image__base_type_visible adview_image__base_type_loaded" itemprop="image"src="http://content.kufar.by/pictures/64/6424370289.jpg" alt="2-Х КОМНАТНАЯ КВАРТИРА" data-src="http://content.kufar.by/pictures/64/6424370289.jpg" data-id="0"> <i class="adview_image__zoom sprite_view_zoom_icon"></i> </div> 

It is necessary to parse the picture, it does not work at all. I tried to parse so that you can see whether something is transmitted at all:

 imgUrl = document.select(".adview_image__base adview_image__base_type_visible adview_image__base_type_loaded").toString(); 

Nothing appears on the screen. What can be wrong!? Is it even possible to sparse a picture with this when using Jsoup?

    1 answer 1

    The problem is that your query uses spaces.

    Try this:

     document.select(".adview_image__base"); 

    If you need to select an element with several classes:

     document.select(".adview_image__base.adview_image__base_type_visible"); 
    • Fine! The first option worked! Thank! - Yury Borisevich