wahaha414 发表于 2007-11-5 17:50:12

求助!!!怎样去掉这段代码呀!!!

<TABLE cellSpacing=0 cellPadding=8 width=100% bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD width=100%><FONT class=font14>
<P><STRONG><FONT color=#ff00ff size=5>精彩专题推荐:</FONT></STRONG></P></FONT>
<TR>
<TD>
<P><A href=http://elab.icxo.com/zhuanti/rhzq.htm target=_blank><FONT color=#d52b6f size=2>赚钱:网上如何赚钱如何赚钱指南</FONT></A></P>
<P><A href=http://elab.icxo.com/zhuanti/zmdjy.htm target=_blank><FONT color=#d52b6f size=2>专卖店手册:专卖店经营指南项目</FONT></A></P>
<P><A href=http://elab.icxo.com/zhuanti/gsqm.htm target=_blank><FONT color=#d52b6f size=2>公司起名:公司起名方法案例分析</FONT></A><BR><BR><A href=http://elab.icxo.com/zhuanti/kdxz.htm target=_blank><FONT color=#d52b6f size=2>开店选址专题:店面选址店铺选址</FONT></A></P></TD></TR>
<P>
<P></P></TD></TR>
<P></P>
<TR>
<TD><A href=http://elab.icxo.com/zhuanti/jz.htm target=_blank><FONT color=#d52b6f size=2>兼职工作:大学生兼职 网上兼职</FONT></A></TD></TR>
<P>
<TR>
<TD><A href=http://elab.icxo.com/zhuanti/lsjm.htm target=_blank><FONT color=#d52b6f size=2>连锁加盟完全手册:热门加盟品牌</FONT></A><A href=http://elab.icxo.com/zhuanti/zfzn.htm target=_blank></A></TD></TR>
<P>
<TR>
<TD><A href=http://elab.icxo.com/zhuanti/zfzn.htm target=_blank><FONT color=#d52b6f size=2>创业致富经:致富故事致富金点子</FONT></A></TD></TR>
<P>
<TR>
<TD><A href=http://elab.icxo.com/zhuanti/rhzcgs.htm target=_blank><FONT color=#d52b6f size=2>创业指南:如何注册公司注册流程</FONT></A></TD></TR>
<P>
<TR>
<TD><A href=http://elab.icxo.com/zhuanti/3-8fnj.htm target=_blank><FONT color=#d52b6f size=2>女性创业:三八妇女节特别专题</FONT></A></TD></TR>
<P>
<TR>
<TD><A href=http://elab.icxo.com/zhuanti/Business%20English.htm target=_blank><FONT color=#d52b6f size=2>创业百科:2007商务英语汇总专题</FONT></A><FONT color=#d52b6f> </FONT></TD></TR>
<TR>
<TD><A href=http://elab.icxo.com/SpringFestival/business.htm target=_blank><FONT color=#d52b6f size=2>创业项目:2007八大创业商机专题 </FONT></A></TD></TR>
<TR>
<TD>
<P><A href=http://elab.icxo.com/SpringFestival/80h.htm target=_blank><FONT color=#000000><FONT color=#d52b6f size=2>创业故事:80后十大创业少年</FONT></FONT><FONT color=#d52b6f size=2>英豪</FONT></A> </P></TD></TR></P></TBODY></TABLE></P></font></p>
            <table width="468"border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td><script type="text/javascript"><!--
google_ad_client = "pub-4782891006573276";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "F3F3F3";
google_color_bg = "F3F3F3";
google_color_link = "333333";
google_color_text = "000000";
google_color_url = "4C4C4C";
//--></script>
                      <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script></td>
                </tr>
            </table>

我刚刚开始用火车头,采集时遇到了这段代码,用首尾加变量替换,怎么也去除不了!!!
高手帮我呀!!!

yulei68 发表于 2007-11-5 18:58:28

采集开始的地方用
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">(*)</script>

这一段就会去掉前面的了。
至于最后的</td>、</tr>和</table>可以用排除的方式去掉就行了

天涯 发表于 2007-11-6 01:50:01

给个要采集的页面看看
页: [1]
查看完整版本: 求助!!!怎样去掉这段代码呀!!!