火车采集器软件交流官方论坛

 找回密码
 加入会员
搜索
火车采集器V9版免费下载火车浏览器 - 可视采集,万能群发,全自动脚本工具
查看: 3497|回复: 1

shopex如何采集多图,用正则定位需要采集的图片地址?求助

[复制链接]
发表于 2010-6-4 08:38:17 | 显示全部楼层 |阅读模式
1火车车厢
这是后车头默认的规则取内容(?<content>[\s\S]*?), 我现在想取第一张大图的图片地址,第二张大图的图片地址,第三张大图的图片地址,大于3张以上的图片,则取到第四个图片地址。如何写规则呢,,正则如何定位第一张big大图出现的为止,如何定位第二张big大图出现的位置?


以下为4张多图商品显示区域   需要截取big大图 4张  有时候商品又只有3张大图,该如何写规则呢



<div class="goods-detail-pic-thumbnail pics">  <table> <tr>  <td class='current' img_id='508'> <div class='uparrow'></div> <a href="?product-88-508-viewpic.html" target="_blank" imgInfo="{small:'http://www.kk580.com/images/goods/20100511/5b549246f5bf80e3.jpg',big:'http://www.kk580.com/images/goods/20100511/b18177e7ad40ba53.jpg'}"> <img src="http://www.kk580.com/images/goods/20100511/1f8f0e984b734a76.jpg" alt='008简装电脑耳机' width='55' height='55'/> </a> </td>  <td img_id='509'> <div class='uparrow'></div> <a href="?product-88-509-viewpic.html" target="_blank" imgInfo="{small:'http://www.kk580.com/images/goods/20100511/7eb31147b9dfc781.jpg',big:'http://www.kk580.com/images/goods/20100511/518d198701bd18b7.jpg'}" > <img src="http://www.kk580.com/images/goods/20100511/ef2d82c3797f9595.jpg" alt='008简装电脑耳机' width='55' height='55'/> </a> </td>  <td img_id='510'> <div class='uparrow'></div> <a href="?product-88-510-viewpic.html" target="_blank" imgInfo="{small:'http://www.kk580.com/images/goods/20100511/02c6ea984537f4c6.jpg',big:'http://www.kk580.com/images/goods/20100511/a594ce94ce362003.jpg'}" > <img src="http://www.kk580.com/images/goods/20100511/e216308cfc8c141c.jpg" alt='008简装电脑耳机' width='55' height='55'/> </a> </td>  <td img_id='511'> <div class='uparrow'></div> <a href="?product-88-511-viewpic.html" target="_blank" imgInfo="{small:'http://www.kk580.com/images/goods/20100511/b4519e4924c2b344.jpg',big:'http://www.kk580.com/images/goods/20100511/2d5c72011228f3b6.jpg'}" > <img src="http://www.kk580.com/images/goods/20100511/5f2d080216091d31.jpg" alt='008简装电脑耳机' width='55' height='55'/> </a> </td>  </tr> </table>  </div> </td> <td width='5%' class='scrollarrow toright' title='向右'>&nbsp; </td> </tr> </table> <a href="?product-88-508-viewpic.html" target="_blank" onclick='_open(this.href);return false;'> <img src="statics/transparent.gif" alt="查看大图" style="width:101px;height:26px;background-image:url(statics/icons.gif);background-repeat:no-repeat;background-position:0 -121px;" /> </a> <script>
      window


以下为4张多图商品显示区域  

<div class="goods-detail-pic-thumbnail pics">  <table> <tr>  <td class='current' img_id='2641'> <div class='uparrow'></div> <a href="?product-603-2641-viewpic.html" target="_blank" imgInfo="{small:'http://www.kk580.com/images/goods/20090720/0ef503699cf70faf.jpg',big:'http://www.kk580.com/images/goods/20090720/8f6cc6efbc30be0e.jpg'}"> <img src="http://www.kk580.com/images/goods/20090720/24eb5087e02608c7.jpg" alt='USB伸缩延长线' width='55' height='55'/> </a> </td>  <td img_id='2639'> <div class='uparrow'></div> <a href="?product-603-2639-viewpic.html" target="_blank" imgInfo="{small:'http://www.kk580.com/images/goods/20090720/c09984d16c4ea8e4.jpg',big:'http://www.kk580.com/images/goods/20090720/f187c3b7058bec17.jpg'}" > <img src="http://www.kk580.com/images/goods/20090720/a00d87631b31b5d1.jpg" alt='USB伸缩延长线' width='55' height='55'/> </a> </td>  <td img_id='2640'> <div class='uparrow'></div> <a href="?product-603-2640-viewpic.html" target="_blank" imgInfo="{small:'http://www.kk580.com/images/goods/20090720/57ed7ab621a2dfdc.jpg',big:'http://www.kk580.com/images/goods/20090720/c6dc74804064f7a1.jpg'}" > <img src="http://www.kk580.com/images/goods/20090720/7333e746b6255f78.jpg" alt='USB伸缩延长线' width='55' height='55'/> </a> </td>  </tr> </table>  </div> </td> <td width='5%' class='scrollarrow toright' title='向右'>&nbsp; </td> </tr> </table> <a href="?product-603-2641-viewpic.html" target="_blank" onclick='_open(this.href);return false;'> <img src="statics/transparent.gif" alt="查看大图" style="width:101px;height:26px;background-image:url(statics/icons.gif);background-repeat:no-repeat;background-position:0 -121px;" /> </a> <script>
      window

发表于 2010-6-4 09:09:38 | 显示全部楼层
使用火车的参数正则即可,勾选该标签循环匹配.
您需要登录后才可以回帖 登录 | 加入会员

本版积分规则

QQ|手机版|Archiver|火车采集器官方站 ( 皖ICP备06000549 )

GMT+8, 2024-11-24 03:29

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表