ellenhe 发表于 2010-8-30 13:45:00

多图采集

<a href="javascript:void(0);" id="rptMoreImgThumbs_ctl03_anchorScreenShotThumb" onclick="(document.getElementById('prodImgSec_0').style.display = 'none'); (document.getElementById('prodSavings')) ? document.getElementById('prodSavings').style.display = 'none' : ''; (document.getElementById('prodImgSec_1').style.display = 'none') ? showImgVidContent('prodImgSec',1) : ''; (document.getElementById('buyTVEmbed')) ? document.getElementById('buyTVEmbed').innerHTML = '' : ''; (document.getElementById('grpVideoDiv')) ? document.getElementById('grpVideoDiv').innerHTML = '' : ''; thumbIMTop('http://ak.buy.com/db_assets/screen_shot_images/967/210786967_003.jpg','http://ak.buy.com/db_assets/prod_lrg_images/967/210786967.jpg',1)"><img src="http://ak.buy.com/db_assets/mini_screen_shot_images/967/210786967_003.gif" id="rptMoreImgThumbs_ctl03_imgScreenShotThumb" name="i3" width="25" height="25" border="0" /></a></td>

这段循环采集,并进行替换,把A 链接的地址替换成IMG SRC的,其它还有什么可以简略的吗。高手是对这段图片采集如何处理的呢

wxl08 发表于 2010-8-30 14:17:07

采用正则匹配,多文件下载用#||#分开

ellenhe 发表于 2010-8-30 14:24:23

老大,能给写个样板吗。感觉这里很乱,无从下手啊
页: [1]
查看完整版本: 多图采集