how to find the text following "<br>" tag
for example:
html source code as below:
<h3>Blood Substitutes (HBOCs): Is There a Downside?<br>
<span class="details">Small Animal > Emergency Medicine & Critical Care
<br>
Tuesday | 8:00 AM - 8:50 AM | Mandalay Bay South Pacific F </span>
</h3>
we can find out the text following <br> by below summar
detail = root_dom.xpath(".//h3/br/following-sibling::text()")
(session_date,session_time,session_room) = detail.split("|")
of course we can find out the text before <bt> tag like this:
detail = root_dom.xpath(".//h3/br/preceding-sibling::text()")
for example:
html source code as below:
<h3>Blood Substitutes (HBOCs): Is There a Downside?<br>
<span class="details">Small Animal > Emergency Medicine & Critical Care
<br>
Tuesday | 8:00 AM - 8:50 AM | Mandalay Bay South Pacific F </span>
</h3>
we can find out the text following <br> by below summar
detail = root_dom.xpath(".//h3/br/following-sibling::text()")
(session_date,session_time,session_room) = detail.split("|")
of course we can find out the text before <bt> tag like this:
detail = root_dom.xpath(".//h3/br/preceding-sibling::text()")