Get the text from nester <br> tags

18 views
Skip to first unread message

Madjid Bouchaïr

unread,
Aug 6, 2017, 4:16:21 PM8/6/17
to beautifulsoup
Hello,

I'm trying to scrape a website in Python to put the info in my DB.
But I hit a wall with "nested" <br> tag
I would like to put every text between the first and the second <strong> tags in a list

<span>
<strong>Prices: </strong>
&nbsp;<br>
$10.00 (USD) until September 1st, 2017<br>
$15.00 (USD) until November 17th, 2017<br>
<br>
<strong>Combined Price:</strong><br>
<em>(Requires registration</em><br>
<br>
$15.00 (USD) until September 1st, 2017<br>
$20.00 (USD) until November 17th, 2017<br>
<br>
* registration fee includes one (1) free event sticker<br>
<br>
<strong>Spectator Entrance Fee:</strong><br>
Free<br>
<br></span>

I read the document and tried some overcomplicated thing...
I can't find a way to do it.
Any help would be nice

Regards,
Madjid
Reply all
Reply to author
Forward
0 new messages