ASP抓取群人数

来源:百度知道 编辑:UC知道 时间:2024/05/26 01:26:25
我做了一个ASP页,有一个群,群号是123456,这个群当前有44人。请问如何让网页抓取这个群的当前人数?就是当访问这个网页的时候显示本群人数:44人,代码越详细越好。我会加分的。
我明白原理,我需要的是代码,谢谢。

首先群人数要能通过网页访问到,然后你用个小偷程序分析网页代码后抓取过来就可以了,小偷程序网上有很多,你自己找一下。

这有一个偷天气预报的代码。
<%
on error resume next
dim fcity
fcity=trim(request("city"))
if fcity="" then
fcity = server.urlencode("北京")
end if
Function GetURL(url)
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "GET", url, False
.Send
GetURL = bytes2bstr(.responsebody)
if len(.responsebody)<100 then
response.write "获取天气 <a href="&url&" target=_blank>"&url&"</a> 失败。"
response.end
end if
End With
Set Retrieval = Nothing
End Function
function bytes2bstr(vin)
strreturn = ""
for i = 1 to lenb(vin)
thischarcode = ascb(midb(vin,i,1))
if thischarcode < &h80 then
strreturn = strreturn & chr(thischarcode)
else
nextcharcode = ascb(midb(vin,i+1,1))
st