网页数据抓取问题

ebrmp 2003-11-11 12:28:04
一个asp做的网站里面有个页面有一些数据
数据是定期更新的
而且根据登录人不同数据有所不同

我想每天把这个网页的数据(数据是写成某个TABLE的格式)拿下来怎么办
...全文
76 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Jaron 2003-11-11
  • 打赏
  • 举报
回复
本版搜索关键字:xmlhttp

把得到的数据进行相应的过滤,处理,得到你想要的数据后,加入到自已风格的页面中。
Tal 2003-11-11
  • 打赏
  • 举报
回复
<%
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))
strReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i = i + 1
End If
Next
bytes2BSTR = strReturn
End Function
Url= "http://cool.vv66.com/musiclist/66vv_4263.htm"
set oSend=Server.CreateObject("Microsoft.XMLHTTP")
SourceCode = oSend.open ("GET",Url,false)
oSend.send()
SourceCode = bytes2BSTR(oSend.responseBody)
Response.Write SourceCode
Response.End
%>

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧