Hi,i am new in python scraping and i apologize for any mistake,
i would like to get a text from html code and the target text is between <br>, i tried the following code but it give me the whole text.
any idea ????
i would like to get a text from html code and the target text is between <br>, i tried the following code but it give me the whole text.
any idea ????
item_phone_type= items.find('span', class_='annonce_get_description', itemprop="description").text.split('<br>') print(item_phone_type)
Quote:<span class="annonce_get_description" itemprop="description">
Smartphones<br>
<b>Double puces</b>
<br>
Mémoire : 64 GO
<br>
Bluetooth Wifi <b>4G</b>
<br>
Ecran 5.8 pouces
<br>
Appareil photo 12 MP
<br>
Bon état
<br>
<span class="annonce_description_preview "> </span></span>