内容显示页
 
类别:服务器+软件 | 浏览(432) | 2007-8-28 23:31:30
'/*=========================================================================
' * Intro       从IIS日志文件分析搜索引擎来访次数统计
' * FileName    bots.vbee
' * Author      yongfa365
' * Version     v2.0
' * WEB         http://www.yongfa365.com
' * Email       yongfa365@qq.com
' * FirstWrite  http://www.yongfa365.com/item/IIS-Log-iislogAnalyzer-Search-Engines-visiting-Statistics-For-Emeditor-Macros-yongfa365.html
' * LastModify  2007-08-30 10:18:25
' *==========================================================================*/


Function RegExpTest(patrn, strng)
    Set regEx = New RegExp
    regEx.Pattern = patrn
    regEx.IgnoreCase = True
    regEx.Global = True
    Set Matches = regEx.Execute(strng)
    RegExpTest = Matches.Count
End Function

Function checkSearchNO(File)
    bots = "Baiduspider|Googlebot|yahoo|msnbot|sogou|YodaoBot|iaskspider"
    bots = Split(bots, "|")
    x=""
    For i = LBound(bots) To UBound(bots)
        x = x & Right("      " & RegExpTest(CStr(bots(i)),File),8) & ":" & bots(i) & vbCrLf
    Next

    clipboardData.setData "Text", document.Fullname & vbCrLf & x
    'editor.ExecuteCommandByID 4123
    alert "结果已经复制到贴帖板里" & vbCrLf & x
End Function
If document.selection.Text="" Then document.selection.SelectAll()
checkSearchNO(document.selection.Text)'原创作者:柳永法(yongfa365)'Blog

引用本页地址:http://www.yongfa365.com/item/IIS-Log-iislogAnalyzer-Search-Engines-visiting-Statistics-For-Emeditor-Macros-yongfa365.html
 
 
相关链接
 
网友评论:
姓名: 记住我
网址:
邮箱:
内容:
验证码:  验证码图片 看不清? 换张图试试
 
     
 
 
文章分类
 
 
.Net + C#(73)
 
 
ASP+VBS(161)
 
 
 
Linux(10)
 
 
 
web 2.0(26)
 
 
 
 
 
心程(68)
 
生活(97)
 
 
     

Power by :柳永法(yongfa365)'Blog  | 京ICP备07011491号  QQ:64049027  E-mail:64049027@qq.com yongfa365'CodePlex yongfa365'CodeGoogle

申请友情链接 要求:跟本站主题相类似正规网站,双方交换为首页位置

转载请注明来源,以便后人及时得到最新、修正、加强版!!!