正文

搜狐博客下载程序2008-08-28 21:33:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/enc999/37936.html

分享到:

搜狐博客下载程序

经常查看博客,一页一页的看,很不方便。我就在考虑如何把喜欢的博客通通下载到本地,下载别人的博客可以慢慢阅读,下载自己的博客可以很好的备份,避免博客服务终止的时候自己的文章不知着落。出于这样的需求我使用 VB  编写了搜狐博客的下载程序。

下载程序分三大部分:1.活的所有博文的链接页面。2.提取博文链接。3.下在博文。

例如:图库999 博客 http://tuku999.blog.sohu.com/的日志列表的页面是http://tuku999.blog.sohu.com/entry/,我使用 Inet 控件来打开这个 URL,获得页面的博客链接部分的源文件如下。

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-08-25&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/98151288.html" target="_blank">金发女郎的诱惑 </a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_98151288" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="金发女郎的诱惑 " data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/98151288.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-0@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/98151288.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_98151288" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/98151288.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_98151288" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder0_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 09:07
 </div>
 <!---->
    <div id="folder0_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/98151288.htmlhttp://tuku999.blog.sohu.com/98151288.html">http://tuku999.blog.sohu.com/98151288.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/98151288.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-08-25&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/98151195.html" target="_blank">在论坛上面转来转去的青春女生</a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_98151195" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="在论坛上面转来转去的青春女生" data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/98151195.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-1@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/98151195.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_98151195" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/98151195.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_98151195" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder1_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 09:06
 </div>
 <!---->
    <div id="folder1_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/98151195.htmlhttp://tuku999.blog.sohu.com/98151195.html">http://tuku999.blog.sohu.com/98151195.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/98151195.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-08-25&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/98151109.html" target="_blank">精致美女 人体艺术 安静淑女</a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_98151109" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="精致美女 人体艺术 安静淑女" data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/98151109.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-2@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/98151109.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_98151109" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/98151109.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_98151109" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder2_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 09:04
 </div>
 <!---->
    <div id="folder2_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/98151109.htmlhttp://tuku999.blog.sohu.com/98151109.html">http://tuku999.blog.sohu.com/98151109.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/98151109.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-08-19&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/97634362.html" target="_blank">博客备份 博客搬家 博客下载 </a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_97634362" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="博客备份 博客搬家 博客下载 " data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/97634362.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-3@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/97634362.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_97634362" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/97634362.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_97634362" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder3_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 16:29
 </div>
 <!---->
    <div id="folder3_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/97634362.htmlhttp://tuku999.blog.sohu.com/97634362.html">http://tuku999.blog.sohu.com/97634362.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/97634362.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-08-18&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/97577820.html" target="_blank">放浪放荡写真 阿朵上风度杂志</a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_97577820" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="放浪放荡写真 阿朵上风度杂志" data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/97577820.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-4@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/97577820.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_97577820" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/97577820.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_97577820" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder4_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 23:13
 </div>
 <!---->
    <div id="folder4_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/97577820.htmlhttp://tuku999.blog.sohu.com/97577820.html">http://tuku999.blog.sohu.com/97577820.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/97577820.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-08-18&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/97577680.html" target="_blank">风度杂志女郎 万人迷 陈好的另一面</a>
3>2008-08-14&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/97265488.html" target="_blank">秀色可餐</a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_97265488" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="秀色可餐" data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/97265488.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-11@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/97265488.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_97265488" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/97265488.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_97265488" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder11_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 22:20
 </div>
 <!---->
    <div id="folder11_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/97265488.htmlhttp://tuku999.blog.sohu.com/97265488.html">http://tuku999.blog.sohu.com/97265488.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/97265488.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-08-14&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/97265232.html" target="_blank">秀色可餐</a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_97265232" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="秀色可餐" data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/97265232.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-12@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/97265232.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_97265232" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/97265232.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_97265232" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder12_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 22:17
 </div>
 <!---->
    <div id="folder12_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/97265232.htmlhttp://tuku999.blog.sohu.com/97265232.html">http://tuku999.blog.sohu.com/97265232.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/97265232.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-08-01&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/96112724.html" target="_blank">传林志玲将出演古装韩剧 经纪公司&#8220;无可奉告&#8221;</a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_96112724" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="传林志玲将出演古装韩剧 经纪公司&#8220;无可奉告&#8221;" data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/96112724.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-13@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/96112724.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_96112724" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/96112724.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_96112724" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder13_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 14:53
 </div>
 <!---->
    <div id="folder13_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/96112724.htmlhttp://tuku999.blog.sohu.com/96112724.html">http://tuku999.blog.sohu.com/96112724.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/96112724.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-07-28&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/95705088.html" target="_blank">卖美女 图片 千张一元</a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_95705088" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="卖美女 图片 千张一元" data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/95705088.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-14@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/95705088.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_95705088" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/95705088.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_95705088" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder14_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 00:38
 </div>
 <!---->
    <div id="folder14_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/95705088.htmlhttp://tuku999.blog.sohu.com/95705088.html">http://tuku999.blog.sohu.com/95705088.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/95705088.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-07-27&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/95632963.html" target="_blank">林青霞爱屋及乌变狗主 谭俊彦割爱成美事(图)</a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_95632963" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="林青霞爱屋及乌变狗主 谭俊彦割爱成美事(图)" data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/95632963.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-15@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/95632963.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_95632963" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/95632963.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_95632963" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder15_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 07:29
 </div>
 <!---->
    <div id="folder15_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/95632963.htmlhttp://tuku999.blog.sohu.com/95632963.html">http://tuku999.blog.sohu.com/95632963.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/95632963.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-07-27&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/95632953.html" target="_blank">组图:周迅见新加坡总统纳丹 取经环保绿化经验</a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_95632953" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="组图:周迅见新加坡总统纳丹 取经环保绿化经验" data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/95632953.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-16@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/95632953.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_95632953" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/95632953.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_95632953" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder16_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 07:28
 </div>
 <!---->
    <div id="folder16_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/95632953.htmlhttp://tuku999.blog.sohu.com/95632953.html">http://tuku999.blog.sohu.com/95632953.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/95632953.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-07-22&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/95251281.html" target="_blank">8级汶川大地震:中国最大的地震 四川省汶川地震原因</a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_95251281" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="8级汶川大地震:中国最大的地震 四川省汶川地震原因" data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/95251281.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-17@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/95251281.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_95251281" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/95251281.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_95251281" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder17_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 17:56
 </div>
 <!---->
    <div id="folder17_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/95251281.htmlhttp://tuku999.blog.sohu.com/95251281.html">http://tuku999.blog.sohu.com/95251281.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/95251281.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-07-22&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/95250993.html" target="_blank">手机安全:手机照片、手机短片、私密短信和手机号码泄密</a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_95250993" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="手机安全:手机照片、手机短片、私密短信和手机号码泄密" data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/95250993.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-18@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/95250993.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_95250993" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/95250993.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_95250993" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder18_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 17:52
 </div>
 <!---->
    <div id="folder18_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/95250993.htmlhttp://tuku999.blog.sohu.com/95250993.html">http://tuku999.blog.sohu.com/95250993.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/95250993.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

<div class="item">
  <div class="item-top"></div>
  <div class="item-title">
    <h3>2008-07-22&nbsp;|&nbsp;<a href="http://tuku999.blog.sohu.com/95250883.html" target="_blank">谷歌金山词霸合作版下载 立即拥有13本在线词典</a>
  
 </h3>
    <div class="item-label">   
   
    <span id="itemId_95250883" class="itemOpr"></span>
    </div>
    <div class="clear"></div>
  </div>

    <div class="item-info">
    <a onmousedown="CA.q('blog_entrylist_share_bottom');" href="javascript:void(0);" entryTitle="谷歌金山词霸合作版下载 立即拥有13本在线词典" data-share-shareType="S|31" data-share-url="S|http://tuku999.blog.sohu.com/95250883.html" data-share-title="E|@entryTitle" data-share-ext="V|_xpt" data-share-abstracts="E|#main-content-19@innerHTML" onclick="shareMe(this)"><img align="absmiddle" src="http://js2.pp.sohu.com.cn/ppp/images/icons/ico_share2.gif" alt="分享" title="分享" /> 分享</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/95250883.html#comment" target="_blank">评论&nbsp;(<span id="itemCmtCount_95250883" class="itemCmtCount">0</span>)</a> &nbsp;|&nbsp;
   <a href="http://tuku999.blog.sohu.com/95250883.html" target="_blank">阅读&nbsp;(<span id="itemReadCount_95250883" class="itemReadCount">?</span>)</a> &nbsp;|&nbsp;
   <a href="#" onclick="Element.toggle('folder19_f'); return false;">固定链接</a> &nbsp;|&nbsp;
     
      发表于 17:50
 </div>
 <!---->
    <div id="folder19_f" style="display:none;" class="item-infoBox"><span class="item-infoBoxTit"><strong>提示:</strong>“固定链接”为您显示此篇文章的固定不变链接,如果您有还有疑问<a href="/help.html">请点击帮助</a></span><br />
      链接地址:<a target="_blank" href="http://tuku999.blog.sohu.com/95250883.htmlhttp://tuku999.blog.sohu.com/95250883.html">http://tuku999.blog.sohu.com/95250883.html</a> <a href="javascript:var url=window.clipboardData.setData('text','http://tuku999.blog.sohu.com/95250883.html');alert('地址已保存到剪切板。');">复制此地址</a><br />
    </div>
  </div>
  <div class="item-bottom"></div>
</div>

每篇日志的链接都列在源程序中,使用字符处理函数提取包含在 <a href=" …………" >中的博文连接。

通过分析,获得日志列表的页数,对每一页都做这样处理。把提取的所有的日志文章的连接放到一个数组然后再下载。

 

需要此程序的朋友 请到我的网站 :http://www.ecn999.com/ 下载 ,别忘了 点击广告支持一下啊。

阅读(3449) | 评论(1)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

loading...
您需要登录后才能评论,请 登录 或者 注册