采集中间的数据。
<tr name="Match_21" id="Match_21" LeagueID="21" align="center" timestamp="1228903200" class="WhiteBg BlueWord" ><td><input id="chk_21" title='点击隐藏比赛' type="text" value="21" readonly style='cursor:pointer; text-align:center; line-height:12px; width:10px; height:10px;' onclick='HideCheckRow(this);'/> </td>
<td class="WhiteWords" bgcolor="#009900" ><a href="http://data.okooo.com/League/LeagueInfoIndex.php?LeagueName=J联赛" target="_blank">J联赛</a></td>
<td class="WhiteWords" bgcolor="#009900" >18:00</td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportQiuLuPanLu.php?MatchID=128571" target="_blank" class="BrownRedL"><span name="sh_name" id="MatchOrder21_HomeName">仙台维加泰</span><span name="ch_name" style="display:none">仙台维加泰</span></a> </td>
<td><div id="MatchOrder21_HandicapNumber"></div></td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportQiuLuPanLu.php?MatchID=128571" target="_blank" class="BrownRedL"><span name="sh_name" id="MatchOrder21_AwayName">磐田山叶</span><span name="ch_name" style="display:none">磐田山叶</span></a></td>
<td>2.72</td>
<td>3.21</td>
<td>2.32</td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportLatestOdds.php?MatchID=128571" target="_blank" class="BrownRedL">赔</a>/<a href="http://data.okooo.com/MatchInfo/MatchReportLastMatch.php?MatchID=128571" target="_blank" class="BrownRedL">析</a><br />
</td>
<td>
</td>
<td><strong class="RedWords"></strong></td>
<td><label for="Match_21_Win"><div style="float:left"><input type="checkbox" id="Match_21_Win" name="Match_21" value="Win" /></div>
<div name="c1" style="float:right; width:42px;">2.80</div>
</label>
</td>
<td><label for="Match_21_Drawn"><div style="float:left"><input type="checkbox" id="Match_21_Drawn" name="Match_21" value="Drawn" /></div>
<div name="c3" style="float:right; width:42px;">3.15</div>
</label>
</td>
<td><label for="Match_21_Lost"><div style="float:left"><input type="checkbox" id="Match_21_Lost" name="Match_21" value="Lost" /></div>
<div name="c5" style="float:right; width:42px;">3.08</div>
</label>
</td>
<td><a href="javascript:void(0);"class=BrownRedL>全</a></td>
</tr>
上面为:http://www.okooo.com/Lottery06/BJBetIndex.php?LotteryType=WDL 网站的足球比赛的数据,
我想把:
得到结果如下:
J联赛18:00仙台维加泰仙台维加泰
磐田山叶
底色不要。
请问我该怎么做才能得到这个列表框中的结果呢?
如果要得到该页所有有赛事。我又该怎么做呢? 群里解决了吧? <tr name="Match_25" id="Match_25" LeagueID="35" align="center" timestamp="1228938300" class="WhiteBg BlueWord"onmouseover="ChageThisBg(this,1);" onmouseout="ChageThisBg(this,0);">
<td><input id="chk_25" title='点击隐藏比赛' type="text" value="25" readonly style='cursor:pointer; text-align:center; line-height:12px; width:10px; height:10px;' onclick='HideCheckRow(this);'/> </td>
<td class="WhiteWords" bgcolor="#F75000" ><a href="http://data.okooo.com/League/LeagueInfoIndex.php?LeagueName=冠军杯" target="_blank">冠军杯</a></td>
<td class="WhiteWords" bgcolor="#F75000" >03:45</td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportQiuLuPanLu.php?MatchID=127552" target="_blank" class="BrownRedL"><span name="sh_name" id="MatchOrder25_HomeName">些路迪</span><span name="ch_name" style="display:none">些路迪</span></a> </td>
<td><div id="MatchOrder25_HandicapNumber"></div></td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportQiuLuPanLu.php?MatchID=127552" target="_blank" class="BrownRedL"><span name="sh_name" id="MatchOrder25_AwayName">维拉利尔</span><span name="ch_name" style="display:none">維拉利爾</span></a></td>
<td>2.24</td>
<td>3.23</td>
<td>3.01</td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportLatestOdds.php?MatchID=127552" target="_blank" class="BrownRedL">赔</a>/<a href="http://data.okooo.com/MatchInfo/MatchReportLastMatch.php?MatchID=127552" target="_blank" class="BrownRedL">析</a><br />
</td>
<td>
</td>
<td><strong class="RedWords"></strong></td>
<td><label for="Match_25_Win"><div style="float:left"><input type="checkbox" id="Match_25_Win" name="Match_25" value="Win" onClick="selectThis(this)"/></div>
<div name="c1" style="float:right; width:42px;">2.24</div>
</label>
</td>
<td><label for="Match_25_Drawn"><div style="float:left"><input type="checkbox" id="Match_25_Drawn" name="Match_25" value="Drawn" onClick="selectThis(this)"/></div>
<div name="c3" style="float:right; width:42px;">3.73</div>
</label>
</td>
<td><label for="Match_25_Lost"><div style="float:left"><input type="checkbox" id="Match_25_Lost" name="Match_25" value="Lost" onClick="selectThis(this)"/></div>
<div name="c5" style="float:right; width:42px;">3.50</div>
</label>
</td>
<td><a href="javascript:void(0);" onclick="selectRow('25');" class=BrownRedL>全</a></td>
</tr>
<tr name="Match_26" id="Match_26" LeagueID="35" align="center" timestamp="1228938300" class="ContentLight BlueWord"onmouseover="ChageThisBg(this,1);" onmouseout="ChageThisBg(this,0);">
<td><input id="chk_26" title='点击隐藏比赛' type="text" value="26" readonly style='cursor:pointer; text-align:center; line-height:12px; width:10px; height:10px;' onclick='HideCheckRow(this);'/> </td>
<td class="WhiteWords" bgcolor="#F75000" ><a href="http://data.okooo.com/League/LeagueInfoIndex.php?LeagueName=冠军杯" target="_blank">冠军杯</a></td>
<td class="WhiteWords" bgcolor="#F75000" >03:45</td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportQiuLuPanLu.php?MatchID=127593" target="_blank" class="BrownRedL"><span name="sh_name" id="MatchOrder26_HomeName">布加勒斯特星</span><span name="ch_name" style="display:none">布加勒斯特星</span></a> </td>
<td><div id="MatchOrder26_HandicapNumber"></div></td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportQiuLuPanLu.php?MatchID=127593" target="_blank" class="BrownRedL"><span name="sh_name" id="MatchOrder26_AwayName">佛罗伦萨</span><span name="ch_name" style="display:none">費倫天拿</span></a></td>
<td>2.67</td>
<td>3.17</td>
<td>2.51</td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportLatestOdds.php?MatchID=127593" target="_blank" class="BrownRedL">赔</a>/<a href="http://data.okooo.com/MatchInfo/MatchReportLastMatch.php?MatchID=127593" target="_blank" class="BrownRedL">析</a><br />
</td>
<td>
</td>
<td><strong class="RedWords"></strong></td>
<td><label for="Match_26_Win"><div style="float:left"><input type="checkbox" id="Match_26_Win" name="Match_26" value="Win" onClick="selectThis(this)"/></div>
<div name="c1" style="float:right; width:42px;">4.21</div>
</label>
</td>
<td><label for="Match_26_Drawn"><div style="float:left"><input type="checkbox" id="Match_26_Drawn" name="Match_26" value="Drawn" onClick="selectThis(this)"/></div>
<div name="c3" style="float:right; width:42px;">3.66</div>
</label>
</td>
<td><label for="Match_26_Lost"><div style="float:left"><input type="checkbox" id="Match_26_Lost" name="Match_26" value="Lost" onClick="selectThis(this)"/></div>
<div name="c5" style="float:right; width:42px;">2.04</div>
</label>
</td>
<td><a href="javascript:void(0);" onclick="selectRow('26');" class=BrownRedL>全</a></td>
</tr>
<tr name="Match_27" id="Match_27" LeagueID="35" align="center" timestamp="1228938300" class="WhiteBg BlueWord"onmouseover="ChageThisBg(this,1);" onmouseout="ChageThisBg(this,0);">
<td><input id="chk_27" title='点击隐藏比赛' type="text" value="27" readonly style='cursor:pointer; text-align:center; line-height:12px; width:10px; height:10px;' onclick='HideCheckRow(this);'/> </td>
<td class="WhiteWords" bgcolor="#F75000" ><a href="http://data.okooo.com/League/LeagueInfoIndex.php?LeagueName=冠军杯" target="_blank">冠军杯</a></td>
<td class="WhiteWords" bgcolor="#F75000" >03:45</td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportQiuLuPanLu.php?MatchID=127594" target="_blank" class="BrownRedL"><span name="sh_name" id="MatchOrder27_HomeName">里昂</span><span name="ch_name" style="display:none">里昂</span></a> </td>
<td><div id="MatchOrder27_HandicapNumber"></div></td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportQiuLuPanLu.php?MatchID=127594" target="_blank" class="BrownRedL"><span name="sh_name" id="MatchOrder27_AwayName">拜仁慕尼黑</span><span name="ch_name" style="display:none">拜仁慕尼黑</span></a></td>
<td>2.47</td>
<td>3.09</td>
<td>2.77</td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportLatestOdds.php?MatchID=127594" target="_blank" class="BrownRedL">赔</a>/<a href="http://data.okooo.com/MatchInfo/MatchReportLastMatch.php?MatchID=127594" target="_blank" class="BrownRedL">析</a><br />
</td>
<td>
</td>
<td><strong class="RedWords"></strong></td>
<td><label for="Match_27_Win"><div style="float:left"><input type="checkbox" id="Match_27_Win" name="Match_27" value="Win" onClick="selectThis(this)"/></div>
<div name="c1" style="float:right; width:42px;">2.96</div>
</label>
</td>
<td><label for="Match_27_Drawn"><div style="float:left"><input type="checkbox" id="Match_27_Drawn" name="Match_27" value="Drawn" onClick="selectThis(this)"/></div>
<div name="c3" style="float:right; width:42px;">2.66</div>
</label>
</td>
<td><label for="Match_27_Lost"><div style="float:left"><input type="checkbox" id="Match_27_Lost" name="Match_27" value="Lost" onClick="selectThis(this)"/></div>
<div name="c5" style="float:right; width:42px;">3.50</div>
</label>
</td>
<td><a href="javascript:void(0);" onclick="selectRow('27');" class=BrownRedL>全</a></td>
</tr>
<tr name="Match_28" id="Match_28" LeagueID="35" align="center" timestamp="1228938300" class="ContentLight BlueWord"onmouseover="ChageThisBg(this,1);" onmouseout="ChageThisBg(this,0);">
<td><input id="chk_28" title='点击隐藏比赛' type="text" value="28" readonly style='cursor:pointer; text-align:center; line-height:12px; width:10px; height:10px;' onclick='HideCheckRow(this);'/> </td>
<td class="WhiteWords" bgcolor="#F75000" ><a href="http://data.okooo.com/League/LeagueInfoIndex.php?LeagueName=冠军杯" target="_blank">冠军杯</a></td>
<td class="WhiteWords" bgcolor="#F75000" >03:45</td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportQiuLuPanLu.php?MatchID=127605" target="_blank" class="BrownRedL"><span name="sh_name" id="MatchOrder28_HomeName">波尔图</span><span name="ch_name" style="display:none">波圖</span></a> </td>
<td><div id="MatchOrder28_HandicapNumber"></div></td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportQiuLuPanLu.php?MatchID=127605" target="_blank" class="BrownRedL"><span name="sh_name" id="MatchOrder28_AwayName">阿森纳</span><span name="ch_name" style="display:none">阿仙奴</span></a></td>
<td>2.29</td>
<td>3.12</td>
<td>3.04</td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportLatestOdds.php?MatchID=127605" target="_blank" class="BrownRedL">赔</a>/<a href="http://data.okooo.com/MatchInfo/MatchReportLastMatch.php?MatchID=127605" target="_blank" class="BrownRedL">析</a><br />
</td>
<td>
</td>
<td><strong class="RedWords"></strong></td>
<td><label for="Match_28_Win"><div style="float:left"><input type="checkbox" id="Match_28_Win" name="Match_28" value="Win" onClick="selectThis(this)"/></div>
<div name="c1" style="float:right; width:42px;">3.28</div>
</label>
</td>
<td><label for="Match_28_Drawn"><div style="float:left"><input type="checkbox" id="Match_28_Drawn" name="Match_28" value="Drawn" onClick="selectThis(this)"/></div>
<div name="c3" style="float:right; width:42px;">2.67</div>
</label>
</td>
<td><label for="Match_28_Lost"><div style="float:left"><input type="checkbox" id="Match_28_Lost" name="Match_28" value="Lost" onClick="selectThis(this)"/></div>
<div name="c5" style="float:right; width:42px;">3.12</div>
</label>
</td>
<td><a href="javascript:void(0);" onclick="selectRow('28');" class=BrownRedL>全</a></td>
</tr>
恩。刚才是采其中的一部分 是可以了。。
如果我想采集这个页面中
http://www.okooo.com/Lottery06/BJBetIndex.php?LotteryType=WDL
只要“冠军杯”的球队的比赛名称,这个怎么采呀?然后按一个列表显示出来。 这样有点麻烦 <td class="WhiteWords" bgcolor="#F75000" ><a href="http://data.okooo.com/League/LeagueInfoIndex.php?LeagueName=冠军杯" target="_blank">冠军杯</a></td>
<td class="WhiteWords" bgcolor="#F75000" >03:45</td>
<td class="WhiteWords" bgcolor="#000000" ><a href="http://data.okooo.com/League/LeagueInfoIndex.php?LeagueName=足总杯" target="_blank">足总杯</a></td>
<td class="WhiteWords" bgcolor="#000000" >03:45</td>
我发现,这中间<a href="http://data.okooo.com/League/LeagueInfoIndex.php?LeagueName=足总杯" target="_blank">足总杯</a></td>
a href="http://data.okooo.com/League/LeagueInfoIndex.php?LeagueName=这一段都是一样的。
于是:我在正则匹配中,写上:
<td class="WhiteWords" bgcolor="#CC3300" ><a href="http://data.okooo.com/League/LeagueInfoIndex.php?LeagueName=(*)" target="_blank">[参数]</a></td>
<td class="WhiteWords" bgcolor="#CC3300" >[参数]</td>
我这个怎么测。都只有一个结果。
【联赛名称】: 03:45冠军杯
请教一下,怎么样得到
【联赛名称】: 03:45冠军杯
03:45足总杯
这样的效果呢? 这样做也是很麻烦,可以[参数1][参数2]这样吗? 我也是用了参数1 参数2 但这个是在右边的框框中的。
但只有一个结果。 【联赛名称】: 03:45冠军杯
而我想要的是: 【联赛名称】: 03:45冠军杯
03:45足总杯
这样的结果。 上面的结果我得出来了。我下一步。想从这个表中
<tr name="Match_28" id="Match_28" LeagueID="35" align="center" timestamp="1228938300" class="ContentLight BlueWord"onmouseover="ChageThisBg(this,1);" onmouseout="ChageThisBg(this,0);">
<td><input id="chk_28" title='点击隐藏比赛' type="text" value="28" readonly style='cursor:pointer; text-align:center; line-height:12px; width:10px; height:10px;' onclick='HideCheckRow(this);'/> </td>
<td class="WhiteWords" bgcolor="#F75000" ><a href="http://data.okooo.com/League/LeagueInfoIndex.php?LeagueName=冠军杯" target="_blank">冠军杯</a></td>
<td class="WhiteWords" bgcolor="#F75000" >03:45</td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportQiuLuPanLu.php?MatchID=127605" target="_blank" class="BrownRedL"><span name="sh_name" id="MatchOrder28_HomeName">波尔图</span><span name="ch_name" style="display:none">波圖</span></a> </td>
<td><div id="MatchOrder28_HandicapNumber"></div></td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportQiuLuPanLu.php?MatchID=127605" target="_blank" class="BrownRedL"><span name="sh_name" id="MatchOrder28_AwayName">阿森纳</span><span name="ch_name" style="display:none">阿仙奴</span></a></td>
<td>2.29</td>
<td>3.12</td>
<td>3.04</td>
<td><a href="http://data.okooo.com/MatchInfo/MatchReportLatestOdds.php?MatchID=127605" target="_blank" class="BrownRedL">赔</a>/<a href="http://data.okooo.com/MatchInfo/MatchReportLastMatch.php?MatchID=127605" target="_blank" class="BrownRedL">析</a><br />
</td>
<td>
</td>
<td><strong class="RedWords"></strong></td>
<td><label for="Match_28_Win"><div style="float:left"><input type="checkbox" id="Match_28_Win" name="Match_28" value="Win" onClick="selectThis(this)"/></div>
<div name="c1" style="float:right; width:42px;">3.28</div>
</label>
</td>
<td><label for="Match_28_Drawn"><div style="float:left"><input type="checkbox" id="Match_28_Drawn" name="Match_28" value="Drawn" onClick="selectThis(this)"/></div>
<div name="c3" style="float:right; width:42px;">2.67</div>
</label>
</td>
<td><label for="Match_28_Lost"><div style="float:left"><input type="checkbox" id="Match_28_Lost" name="Match_28" value="Lost" onClick="selectThis(this)"/></div>
<div name="c5" style="float:right; width:42px;">3.12</div>
</label>
</td>
<td><a href="javascript:void(0);" onclick="selectRow('28');" class=BrownRedL>全</a></td>
</tr>
得出
而我想要的是: 【联赛名称】: 03:45冠军杯 波尔图(波圖)vs 阿森纳 (阿仙奴) 胜2.29负3.12平3.04
03:45足总杯
下面的依此类推。这样的结果。 这种应该用什么办法得到呢? 急求帮忙。谢谢各位了!
页:
[1]