web scraping - Extract specific text using iMacro -
os : ubuntu 14.04
browser : mozilla firefox v 36.0.1
imacro : version build=8920312 recorder=fx
want imacro code extract csv file number "118" (or 118.5) html code :
<div class="betting_row clearfix"> <a href="#" class="betlink cell fifty last_cell" id="3976203966" >over 118.5 <strong class="odds">0.90</strong> </a> </div> note : html code appear on live basketball game in bet site http://www.bet.co.za/ want extract "total points" number
i've tried code:
tag pos=1 type=a attr=class:"betlink cell fifty last_cell" extract=txt set !extract eval("'{{!extract}}'.match(/\d\d\d\.\d/)[0]") but extract number , odd : " on 118.5 0.90" , want "118"
for particular case code helpful:
tag pos=1 type=a attr=class:"betlink cell fifty last_cell" extract=txt set !extract eval("'{{!extract}}'.match(/\d\d\d\.\d/)[0]") for more universal solution 1 needs know possible patterns (or range) of extracted value. btw, if you’re still interested in script csv-file without quotes, contact me via e-mail ( shugarjs@gmail.com ) , i’ll give you.
Comments
Post a Comment