看了“采不到网易博客搜索”自己制作了一下,但问题多多
看了这个“练习题 偶失败鸟。。。采不到网易博客搜索”http://bbs.locoy.com/spider-29900-1-1.html但我做出来的却问题多多
第一:看过那个帖子说用自定义链接,但我去搜索结果里那边点源文件,但却找不到搜索结果,结果如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网易博客搜索</title>
<meta http-equiv="Content-type" c>
</head>
<script type="text/javascript" src="http://st3.blog.163.com/94150/js/gen/search.js"></script>
<body >
<div id="bodyCanvus"></div>
<script type="text/javascript" src="http://st1.blog.163.com/94150/js/gen/loginNavigator.js"></script>
<link type="text/css" rel="stylesheet" href="http://st1.blog.163.com/94150/style/css/base/loginNavigator.css" />
<!--博客头部模块开始-->
<link rel="stylesheet" type="text/css" href="http://st.blog.163.com/pub/services/css/blog.css?1">
<link rel="stylesheet" type="text/css" href="http://st.blog.163.com/pub/services/css/space.css?1">
<script type="text/javascript" src="http://st.blog.163.com/pub/services/js/common.js?1"></script>
<div class="blog">
<div class="blog-head blogheadborder" style="margin:0px 16px 10px 16px">
<div class="logo" > </div>
<div class="topic f11">博客搜索</div>
<div class="serves" > </div>
<div class="toolbar">
<div>
<div style="display:inline;" id="blog_notLoginedDiv"><a class="a07" href="#" >登录</a><span class="sep">|</span><a target="_blank" class="a07" href="http://reg.163.com/reg/reg0.jsp?url=http://blog.163.com/ntesRegBlank.html">注册</a></div>
<divid="blog_loginedDiv" style="display:none"></div>
<span class="sep">|</span><a class="a07" href="http://blog.163.com/">博客首页</a><span class="sep">|</span><a target="_blank" class="a07" href="http://www.163.com">网易首页</a>
<div style="display:none;" id="blog_logined_ExistDiv"><span class="sep">|</span><a class="a07" href="#" >退出</a></div>
</div>
<script>getBlogMsgCount();</script>
<div class="srh">
</div>
</div>
<br class="clear"/>
</div>
</div>
<!--博客头部模块结束--> <script type="text/javascript" src="http://blog.yodao.com/search?keyfrom=163.js&doctype=js&ue=gbk&keyfrom=163.js&site=blog.163.com&t=a&start=0&length=10&q=locoy&sortbydate=0&referer=http%3A%2F%2Fblog.163.com%2Fsearch%3Ft%3Dblog%26o%3Dall%26q%3Dlocoy%26s%3Dr%26p%3D2#"></script>
<div id="searchpagehead" style="z-index:1;">
<div class="seartop">
<div class="pageHead">
<table width="636" border="0" style="margin-left:20px;">
<tr>
<td width="500" colspan="3">
<div id="seartype" class="seartypesub">
<a style="font-weight: bold">日志</a>
<a href="#" >相片</a>
<a href="#" >标签</a>
<a href="#" >博客作者</a>
</div>
</td>
</tr>
<tr>
<form name="formTop" method="post">
<td width="270"><input id="words" type="text" class="inputText" size="50" value="locoy" /></td>
<td width="85"><input type="button" value=" 搜索 " /> </td>
<td width="150"></td>
</form>
</tr>
<tr>
<td colspan="3">
<div id="searopt">
</div>
</td>
</tr>
</table>
</div>
</div>
<div class="seartopbar">
<div class="orderopt" id="_$_order_opt">
<ul>
<li><ahref="#" >按时间排序</a></li>
<li><a>按相关性排序</a></li>
</ul>
</div>
<div class="fadefont searinfo" id="_$_search_info"> 约有<nobr id="_$_all_count">0</nobr>项符合“<a class="seartext">locoy</a>”的查询结果。</div></div>
</div>
<script type="text/JavaScript">
// <![CDATA[
searchNavigatorLoad('blog', 1);
// ]]>
</script>
<div class="pageBody" id="_$_search_result">
</div>
<div style="clear:both;"></div>
<div class="relWords" id="_$_search_related" style="display:none;">
</div>
<form name="formPager" method="post" >
<input type="hidden" id="referer" value=""/>
</form>
<div class="pageLink" id="_$_search_page">
</div>
<div class="searbgline"></div>
<div class="pageBottom">
<table>
<tr>
<form name="formBottom" method="post" >
<td width="322"><input id="words_b" type="text" class="inputText" size="45" value="locoy" /></td>
<td width="61"><input type="button" value=" 搜索 " /> </td>
<td width="61"><a href="http://www.yodao.com/about/index.html" target="_blank"><img src="http://st.blog.163.com/style/common/search/yodaosmallsizelogo.gif"/> </a></td>
</form>
</tr>
<tr>
<td colspan="2">
<div id="searopt_b">
</div>
</td>
</tr>
</table>
</div>
<div id="pageBotInfo">
<a href="http://corp.163.com/index_gb.html" target="_blank">公司简介</a> -
<a href="http://gb.corp.163.com/gb/contactus.html" target="_blank">联系方法</a> -
<a href="http://corp.163.com/gb/job/job.html" target="_blank">招聘信息</a> -
<a href="http://help.163.com/?b13abk1" target="_blank">客户服务</a> -
<a href="http://corp.163.com/gb/legal/legal.html" target="_blank">相关法律</a>
<br />网易公司版权所有 ©1997-2008
</div> </body>
</html>
有去测试,但结果只是
想用自定义链接,但都找不到那些网址,怎么链接啊,问一下xiongyujie37,你的是怎么做的? 你比我还菜? 用SCRIPT里面的地址就可以了
继续努力吧,我们都是新人! 楼主可不是一般的水平. 原帖由 xiongyujie37 于 2008-9-5 08:57 发表 http://bbs.locoy.com/images/common/back.gif
你比我还菜? 用SCRIPT里面的地址就可以了
继续努力吧,我们都是新人!
谢谢,但还是有一点问题,不过我再去研究一下
页:
[1]