C45HC0W
Regular Member
- Jan 30, 2019
- 430
- 142
Im working on a python webscrapping script with request and beautiful soup. how do i get the number (4.00) out of this html code: <div onmouseout="delayHideTip()" onmouseover="page.hist(this,'P-0.00-0-0','34d55xv498x0x0',80,event,0,1)">4.00</div>
Thank you for any ideas in advance!
Thank you for any ideas in advance!
Code:
<tr class="lo even">
<td>
<div class="l"><a class="name2" title="Go to 12BET website!" onclick="return !window.open(this.href)" href="/bookmaker/12bet/link/"><span class="blogos l80"></span></a> <a class="name" title="Go to 12BET website!" onclick="return !window.open(this.href)" href="/bookmaker/12bet/link/">12BET</a> </div><span class="ico-bookmarker-info ico-bookmaker-detail"><a title="Show more details about 12BET" href="/bookmaker/12bet/"></a></span><span class="ico-bookmarker-info ico-bookmaker-bonus"><a onmouseout="globals.getBookmaker(80).cancelBonusOver();" xparam="<div class="bold">Matched Freebet up to £35!</div><div>Place 6 bets and receive a freebet up to £35!</div>~3" onmouseover="globals.getBookmaker(80).trackBonusOver()" onclick="globals.getBookmaker(80).trackBonusClick();return !window.open(this.href);" href="/bookmaker/12bet/bonus/164"></a></span></td>
<td class="right odds up">
<div onmouseout="delayHideTip()" onmouseover="page.hist(this,'P-0.00-0-0','34d55xv464x0x7mi9j',80,event,0,1)">1.58</div>
</td>
<td class="right odds up">
<div onmouseout="delayHideTip()" onmouseover="page.hist(this,'P-0.00-0-0','34d55xv498x0x0',80,event,0,1)">4.00</div>
</td>
<td class="right odds down">
<div onmouseout="delayHideTip()" onmouseover="page.hist(this,'P-0.00-0-0','34d55xv464x0x7mi9k',80,event,0,1)">6.00</div>
</td>
<td class="center info-value"><span>95.3%</span></td>
<td onmouseout="delayHideTip()" class="check ch1" xparam="FRESH ODDS<br />(last update %t ago)~2"></td>
</tr>