lundi 24 juillet 2017

How to enter the second object of the same type web scraper

when I am trying a parse a webpage, I open new divs through soup[0].div.div.div, but when I write it, there's no output. What could be the cause of that? (the webpage is correct) Here it is:

<div class="announcement-container">
<div class="announcement-block-link">
<div class="announcement-block__date">
                      Today 16:17
                    </div>
<div class="announcement-block__location">
                      Larnaca district, Pyla Touristiki Periochi
                    </div>
<div class="announcement-block__breadcrumbs">
<span> Real estate</span> »
                      
                        <span> Houses, apartments to rent</span> »
                      
                        <span> Agent</span>
</div>
</div>
<div>
<div class="list-announcement-block">
<div class="list-announcement-block-img">
<div class="photo-commodities">
<p>6</p>
</div>



Aucun commentaire:

Enregistrer un commentaire