Get information about a div without id with BeautifulSoup Python

0

I need to find the code of this HTML:

<div class="form-horizontal">

                <br>
                <div class="control-group">

                    <div class="controls">
                        <!--                    <span class="icon32 icon-green icon-undo" title="atras" onclick="atras();"></span> -->
                        <a class="well span3 top-block"><img class="grayscale" src="/SimonQuotation/images/icons/cars.png">
                            <div>
                                Marca : ---------- SA <br> Codigo : 1601224
                            </div></a> <a class="well span3 top-block"><img class="grayscale" src="/images/icons/keys.png">
                            <div>Modelo : ----</div></a> <a class="well span3 top-block"><img class="grayscale"
</div>

Does anyone know how to access the?

    
asked by Diego Lopez 28.11.2017 в 20:27
source

2 answers

0

The code to perform Scraping with beuatiful through its class:

codigo= soup.find("div", {"class":"controls"}).div

Thanks for helping me

    
answered by 28.11.2017 / 21:12
source
0

Reading the documentation I realize that you can search for it directly by the class with this method soup.div['name_class']

    
answered by 28.11.2017 в 20:44