asp 写alexa 排名查询系统教程一

Dim domain,Url,Url1,strPage,StrPage1
Dim xmldom,SD,SITE,dimg
domain = request.QueryString("url")
if domain = "" then domain = "alixixi.com"
If Not iswww(domain) Then
response.write "<script>alert('您输入的网址无效,请重新输入!')</script>"
domain = "alixixi.com"
End if
host = "alexa.alixixi.com"
if left(domain,7)="http://" then
 domain=right(domain,len(domain)-7)
end if
if instr(domain,"/")<>0 then
 domain=left(domain,instr(domain,"/")-1)
end if
on error resume Next
Function iswww(strng)
    iswww = false
    Dim regEx, Match
    Set regEx = New RegExp
    regEx.Pattern = "^w+((-w+)|(.w+))*[A-Za-z0-9]+((.|-)[A-Za-z0-9]+)*.[A-Za-z]+$"
    regEx.IgnoreCase = True
    Set Match = regEx.Execute(strng)
    if match.count then iswww= true
End Function
Function GetPage(Path)
        t = GetBody(Path)
        GetPage=BytesToBstr(t,"UTF-8")
End function
Function GetPage2(Path)
        t = GetBody(Path)
        GetPage2=BytesToBstr(t,"GB2312")
End function
Function GetBody(url)
        on error resume next
        Set Retrieval = CreateObject("Microsoft.XMLHTTP")
        With Retrieval
        .Open "Get", url, False, "", ""
        .Send
        GetBody = .ResponseBody
        End With
        Set Retrieval = Nothing
End Function
function fget(str)
select case trim(str)
 case ""
 fget = "--"
 case else
 fget = str
end select
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
Function FixStr(ByVal str, ByVal start, ByVal last, ByVal n)
Dim strTemp
On Error Resume Next
If InStr(str, start) > 0 Then
Select Case n
Case 0
strTemp = Right(str, Len(str) - InStr(str, start) - Len(start) + 1)
strTemp = Left(strTemp, InStr(strTemp, last) - 1)
Case Else
strTemp = Right(str, Len(str) - InStr(str, start) + 1)
strTemp = Left(strTemp, InStr(strTemp, last) + Len(last) - 1)
End Select
Else
strTemp = ""
End If
FixStr = strTemp
End Function
Function Comma(str)
If Not(IsNumeric(str)) Or str = 0 Then
Result = 0
ElseIf Len(Fix(str)) < 4 Then
Result = str
Else
Pos = Instr(1,str,".")
If Pos > 0 Then
Dec = Mid(str,Pos)
End if
Res = StrReverse(Fix(str))
LoopCount = 1
While LoopCount <= Len(Res)
 
TempResult = TempResult + Mid(Res,LoopCount,3)
LoopCount = LoopCount + 3
If LoopCount <= Len(Res) Then
TempResult = TempResult + ","
End If
Wend
Result = StrReverse(TempResult) + Dec
End If
Comma = Result
End Function

时间: 2024-09-20 22:49:39

asp 写alexa 排名查询系统教程一的相关文章

asp 写alexa 排名查询系统教程三

<html> <head> <title>阿里西西alexa查询系统,alexa排名查询,alexa网站排名查询,全球alexa排名查询,alexa世界排名查询,alexa排名,alexa工具条,alexa traffic rank,<%=SiteTitle%>,<%=domain%>的Alexa排名查询</title> <META http-equiv="Content-Type" content=&quo

asp 写alexa 排名查询系统教程四

<% on error resume next 'if not ChkPost() then 'Response.Write "document.getElementById(""RankToday"").innerHTML = '<a href=""http://www.alixixi.com"">www.alixixi.com</a>';" 'Response.Write

asp 写alexa 排名查询系统教程二

Function lens(txt, length)         Dim x, y, ii         txt = Trim(txt)         x = Len(txt)         y = 0         If x >= 1 Then             For ii = 1 To x                 If Asc(Mid(txt, ii, 1)) < 0 Or Asc(Mid(txt, ii, 1)) > 255 Then          

asp获取alexa排名小偷源代码

排名|源代码|alexa 1.通过xmlhttp读取http://client.alexa.com/common/css/scramble.css该页面的内容,当然,我们也可以直接把这个页面保存到本地使用,但是我们不能保证alexa是否会重新修改该css样式,所以我们实时读取http://client.alexa.com/common/css/scramble.css该页面的内容的方案比较可靠点,我们将页面内容存入变量strAlexaCss中.        2.通过xmlhttp读取http:

如何通过编程方式获取alexa排名的数据

Alexa 是以发布世界网站排名而引人注目的一个网站.其实,此网站的搜索引擎也很好用,但是"网站排名"却是它吸引眼球的最主要原因.     以网站导航起家的Alexa创建于1996年4月,他们的目的是让Internet冲浪者在分享虚拟世界资源的同时,更多地参与Internet资源的组织.2002年5月Alexa放弃了自己的搜索引擎与Google合作.他们每天在网上搜集超过1,000GB的信息,然后进行整合发布.现在他们搜集的URL数量已经超过了Google.下图是他们自己给出的一个信息

站长类网站ALEXA排名全线上升

中介交易 http://www.aliyun.com/zixun/aggregation/6858.html">SEO诊断 淘宝客 云主机 技术大厅 上个星期突然发现我的博客广州SEO优化的ALEXA排名突然成倍的增长了,这是一个刚改的新站,从一千多万一下跳到六百万来了,我还以为是现在收录多了,他的ALEXA排名就自然上升了,但是还是有点奇怪,因为根据以往经验来看就算收录增多它也不会上升这么快,为此我做了一个相对比较全面的调查,发现了一些有意思的现象. 细心的站长朋友可能早就发现,最近很多

为何站长类网站ALEXA排名全线飙红?

&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp;细心的站长朋友可能会发现,最近很多站长类网站ALEXA排名大幅度的上涨. 但是其它类型网站的排名并没什么变化.为此我做了一个相对比较全面的调查,发现了一些有意思的现象. 我对每个类别的站长类网站都进行了ALEXA排名查询,比如站长资讯类的,站长统计类的,程序建站类的,域名注册类的,站长工具类的.发现排名上涨的,主要还是各个类别公认的领头羊网站.我觉得这次ALEXA的调

从Alexa排名看生活分类信息网站现状

中介交易 SEO诊断 淘宝客 云主机 技术大厅 生活分类信息行业一直以来都暗潮汹湧,几大网站间竞争日益激烈.随着中国雅虎今年7月份正式启动雅虎口碑生活服务新平台,58同城与第一中文旅游搜索引擎"去哪儿"正式达成战略合作,"客齐集"正式更名为"百姓网",中国分类信息行业在经历了几年的沉默之后,似乎迎来了行业发展的爆发期. 通过分析Alexa排名,(备注:Alexa网站排名及流量估计在一定程度上受到大家的欢迎,还因为Alexa数据是公开的,每个互联网

侠客站长站alexa排名被阿里妈妈清零?

中介交易 http://www.aliyun.com/zixun/aggregation/6858.html">SEO诊断淘宝客 站长团购 云主机 技术大厅 今天,我像往常一样打开侠客站长站下载模板,突然兴致所致,我到zzxgj.com上面查询了一下自己网站的alexa排名,同时也顺便查看了一下xkzzz.com的排名.突然发现排名显示结果如下: 从上图看出,看得见趋势图,却看不到数据,无论我多少次重复查询,始终看不见数据.这就引发了我强烈的好奇心. 笔者到网上寻找各类alexa排名查询源