挑战:如何采集循环内容?
本帖最后由 joynow 于 2009-2-15 11:28 编辑结果页的源码如下
<a name="编号1">编号1</a>
<center>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>编号1內容1</td>
<td>编号1內容1</td>
</tr>
</table>
</center>
<p> </p>
<a name="编号2">编号2</a>
<center>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>编号2內容1</td>
<td>编号2內容1</td>
</tr>
</table>
</center>
<p> </p>
<a name="编号3">编号3</a>
<center>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>编号3內容3</td>
<td>编号3內容3</td>
</tr>
</table>
</center>
<p> </p>请如何采集成多条记录?采集后的格式如下:
【编号】:编号1
【内容1】:编号1內容1
【内容2】:编号1內容1
███████████████第2条记录████████████████
【编号】:编号2
【内容1】:编号2內容1
【内容2】:编号2內容1
███████████████第3条记录████████████████
.... 就这样,ali93ls 等待高手出现 这个在认证贴有提到过 谢谢连通,很牛!ali68ls 变量太多的话,采集效率会很低哦 干嘛要重复呢,真是的
http://www.52ydsf.cn/
http://www.haock.cn/ 用正则匹配采集行么 简单,不好意思收费,不接了
页:
[1]