<<  Unit Miner  <<  QualityUnit
 
Unit Miner - product box
Unit Miner Service

We can extract data for you!

Fast, reliable & affordable Send us your requirements

DATA RETRIEVED FOR EXPEKT.COM


EXTRACTION SCRIPT USED

<Section>
    Name bets

    # load content next 24hours bets
    <Action ContentURL>
        URL http://www.expekt.com/odds/eventsodds.jsp?range=1000000&sortby=2&active=betting&betcategoryId=%25
        Header Referer: http://www.expekt.com/start.jsp
        RemoveNewLine
        TagsToStrip b,a
    </Action>

    Define $output_file expekt-output.php
    
    <Action Print>
        FileName {$output_dir}{$output_file}
        FileMode Write  
        Text <table>\n
    </Action>

    # find all dates
    <Section While>
        Optional
        
        <Pattern>
            Name date
            RegExp <tr*>*<td*>{$date}</td>*</tr>*<tr*>*<td*>*\
                <table*>*<tr*>*<td*><img*>*</td*>*<td*>closing time
        </Pattern>
        
        <Action Print>
            FileName {$output_dir}{$output_file}
            Text <tr><td colspan="4">{$date}</td></tr>\n
        </Action>
        
        # find all bets
        <Section While>
            # continue also if date contains no bet
            Optional
            
            # iterate up to this pattern (date)
            EndAt <table*>*<tr*>*<td*><img*>*</td*>*<td*>closing time
            
            <Pattern>
                RegExp <tr class="oddsRow
            </Pattern>
            <Section Or>
                NoContext
                Optional
                EndAt <tr class="oddsRow
                <Pattern>
                    # match bet
                    RegExp <!-- Date -->*<td*>{$time}</td>*<!-- Event -->*<td*>*<table*>*<tr>*<td*></td>*<td*>\
                        {$subject1}{:re(\s+-\s+)}{$subject2}<BR>{:re(.*?)}</td>*<!-- Type -->*<td*>\
                        {$league}</td>*<!-- Odds -->*<td*>\
                        {$win_home}</td>*<td*>\
                        {$draw}</td>*<td*>{$win_away}</td>
                    Trim
                </Pattern>
                <Pattern>
                    # match bet
                    RegExp <!-- Date -->*<td*>{$time}</td>*<!-- Event -->*<td*>\
                        {$subject1}{:re(\s+-\s+)}{$subject2}<BR>{:re(.*?)}</td>*<!-- Type -->*<td*>\
                        {$league}</td>*<!-- Odds -->*<td*>\
                        {$win_home}</td>*<td*>\
                        {$draw}</td>*<td*>{$win_away}</td>
                    Trim
                </Pattern>
                <Pattern>
                    # match bet
                    RegExp <!-- Date -->*<td*>{$time}</td>*<!-- Event -->*<td*>\
                        {$subject1}{:re(\s+-\s+)}{$subject2}</td>*<!-- Type -->*<td*>\
                        {$league}</td>*<!-- Odds -->*<td*>\
                        {$win_home}</td>*<td*>\
                        {$draw}</td>*<td*>{$win_away}</td>
                    Trim
                </Pattern>		

                # print results
            </Section>
            <Action Print>
                FileName {$output_dir}{$output_file}
                Text <tr>\n<td>{$time}</td>\n<td>{$subject1}-{$subject2}</td>\n<td>{$league}\
                    </td>\n<td>{$win_home} {$draw} {$win_away}</td>\n</tr>\n
            </Action>
        </Section>
    </Section>
    
    <Action Print>
        FileName {$output_dir}{$output_file}
        Text </table>\n
    </Action>

</Section>

Main bets