网络小偷
来源:互联网 发布:怎样配置java运行环境 编辑:程序博客网 时间:2024/04/30 03:37
一段从网页上偷数据的ASP程序。
<%
Const adTypeBinary = 1
Const adTypeText = 2
Function Bytes2bStr(vin)
Dim BytesStream,StringReturn
Set BytesStream = Server.CreateObject("ADODB.Stream")
With BytesStream
.Type = adTypeText
.Open
.WriteText vin
.Position = 0
.Charset = "GB2312"
.Position = 2
StringReturn = .ReadText
.close
End With
Set BytesStream = Nothing
Bytes2bStr = StringReturn
End Function
url="http://www.qx121.com/information/tqyb/shortnb_output.asp?"&time()&""
set oSend=createobject("Microsoft.XMLHTTP")
SourceCode = oSend.open ("GET",url,false)
oSend.send()
if err.number<>0 then
Response.write err.description
Response.End()
end if
SourceCode = bytes2BSTR(oSend.responseBody)
bodystart=instr(SourceCode,"</tr>-->")
bodyend1=instr(bodystart,SourceCode,"值班预报员")
if not bodyend1=0 then
bodyend=InstrRev(SourceCode,"</tr",bodyend1)
end if
if bodystart=0 or bodyend1=0 or bodyend=0 then
body="连接服务器时出错,请稍后再试!"
else
body=mid(SourceCode,bodystart+8,bodyend-bodystart-4)
end if
set SourceCode=nothing
'显示获取的内容,同样你也可以在这里写入库语句
response.Write(body)
%>
- 网络小偷
- 网络走红,小偷反扒秘籍
- 小偷
- 小偷
- 社交网络:小偷的行窃利器
- 继续深入HttpClient,用HttpClient+HtmlParser打造网络小偷程序
- 遭遇小偷
- WAP小偷
- 小偷程序
- 天气预报小偷
- 小偷类
- 小偷可耻
- 小偷退齐兵
- 谁是小偷
- 天气预报小偷
- 小偷函数
- 小偷问题
- 小偷问题
- 盖茨《无缝计算》演讲 全文
- 如何在你的IE上添加一个BUTTON
- 实现和IE浏览器交互的几种方法的介绍
- 关于oracle怎么保证读一致性
- blog点评2
- 网络小偷
- Java发展展望
- Java中static、this、super、final用法简谈
- 利用C#进行AutoCAD的二次开发
- Does AutoCAD ActiveX work with Microsoft’s J++ Java or Borland’s Delphi environment?
- 类的研究
- C++ Builder开发AutoCAD应用程序的方法
- 如何在Delphi中调用Matlab(ActiveX)?
- 高亮网页中的关键字