| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1066 人关注过本帖
标题:请教两个问题百度快照和PR获取方法
只看楼主 加入收藏
danhaoran
Rank: 1
等 级:新手上路
帖 子:224
专家分:0
注 册:2005-10-1
结帖率:100%
收藏
已结贴  问题点数:20 回复次数:6 
请教两个问题百度快照和PR获取方法
请教两个问题百度快照和PR获取方法

最好是代码表现,怎么样的获取到百度快照的时间.
搜索更多相关主题的帖子: 百度 快照 获取 
2010-10-22 15:08
zmh886
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:12
帖 子:238
专家分:1305
注 册:2010-6-2
收藏
得分:14 
xmlhttp获取百度搜索页源码 然后提取时间

http://www./
2010-10-23 12:05
danhaoran
Rank: 1
等 级:新手上路
帖 子:224
专家分:0
注 册:2005-10-1
收藏
得分:0 
具体怎么去做啊?求问!

2010-10-25 09:10
sunlinlin123
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2010-10-25
收藏
得分:0 
<%Server.ScriptTimeOut=9999999
Function GetHTTPPage(HttpUrl,param)
dim XmlHttp
set XmlHttp=Server.createobject("Microsoft.XMLHTTP")
XmlHttp.open "Get",HttpUrl,false
XmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
XmlHttp.send param
if XmlHttp.readystate<>4 then
   exit function
end if
'GetHTTPPage=bytesToBSTR(XmlHttp.responseText,"GB2312")'若取得页面BODY内容用此方法。
GetHTTPPage=XmlHttp.responseText
set XmlHttp=nothing
if err.number<>0 then
   err.Clear
end if
End Function

Function BytesToBstr(Body,Cset)
    Dim Objstream
    Set Objstream = Server.CreateObject("adodb.stream")
    objstream.Type = 1
    objstream.Mode =3
    objstream.Open
    objstream.Write body
    objstream.Position = 0
    objstream.Type = 2
    objstream.Charset = Cset
    BytesToBstr = objstream.ReadText
    objstream.Close
    set objstream = nothing
End Function
url="http://www.
str=GetHTTPPage(url,param)
response.write str
%>
2010-10-25 14:33
danhaoran
Rank: 1
等 级:新手上路
帖 子:224
专家分:0
注 册:2005-10-1
收藏
得分:0 
我要传参数进去,就是传一个网站地址,怎么获取百度快照时间?

2010-10-26 09:10
danhaoran
Rank: 1
等 级:新手上路
帖 子:224
专家分:0
注 册:2005-10-1
收藏
得分:0 
哈哈,稿定了,谢谢哥们!

2010-10-26 10:43
bccn2013
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-9-19
收藏
得分:0 
回复 6楼 danhaoran
请赐教,先谢过高手!
2012-09-19 08:50
快速回复:请教两个问题百度快照和PR获取方法
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018191 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved