您的位置:首页 > 其它

获取网页内容具体用法,瞬间可以获取视频地址或者其它有规则内容

2009-04-15 11:51 399 查看
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="collecter.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link href="../Css/Global.css" rel="stylesheet" type="text/css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<%

ConStr = GetHttpPageUtf8("http://so.youku.com/search_video/q_%E5%AA%B3%E5%A6%87%E5%84%BF%E5%92%8C%E5%B0%91%E5%A5%B6%E5%A5%B6")
'ConStr = UrlEncoding(ConStr)
strValue = GetArray(ConStr,"<a href=""http://v.youku.com/v_show/id","</a>",true,true)
strArry = Split(strValue,"$Array$")
'response.Write(Lbound(strArry)&":"&Ubound(strArry))
j = 1
for i =0 to Ubound(strArry)
' response.Write(Len(strArry(i))&"<br>")
if Len(strArry(i)) <100 then
tempID = GetArray(strArry(i),"id_","=.html",false,false)
tempTitle = GetArray(strArry(i),"第","集",true,true)
tempStr = "<div class='makedsj'><a href='javascript:void(0)' onclick='playTarget("""&tempID&""",""youku"")'>"&tempTitle&"</a></div>"
response.Write(tempStr)
' j = j +1
end if
next
%>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐