标题:如何利用VB统计网页的在线人数?
只看楼主
a814153
Rank: 2
等 级:论坛游民
威 望:1
帖 子:13
专家分:24
注 册:2011-6-9
得分:0 
Private Sub CommandButton1_Click()
    On Error Resume Next
    Set oDoc = CreateObject("htmlfile")
    With CreateObject("WinHttp.WinHttpRequest.5.1")
        .Open "GET", "https://bbs.bccn.net/", False
        .send
        tt = Split(Split(.responsetext, "当前在线:")(1), "</td>")(0)
        oDoc.body.innerHTML = tt
        Set r = oDoc.All.tags("b")
        Debug.Print "当前在线:" & r(0).innerText
        Debug.Print "在线会员:" & r(1).innerText
        Debug.Print "在线访客:" & r(2).innerText
    End With
End Sub
2013-05-02 11:21



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-362754-1-1.html




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

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