多页采集的时候怎么把得到的1级网址结果替换
比如0级网址是通配符匹配的多页,怎么把得到的1级网址中的部分替换掉呢?如得到的1级网址是
http://bbs.locoy.com/1.php
http://bbs.locoy.com/2.php
http://bbs.locoy.com/3.php
怎么才能把他替换成
http://bbs.sina.com/1.php
http://bbs.sina.com/2.php
http://bbs.sina.com/3.php
然后再采集替换后的网页内容。
预谢达人指教!
页:
[1]