바 이 두 도둑
2754 단어 바 이 두 도둑
Function dq(key)dim XmlHttpset XmlHttp = CreateObject("Microsoft.XMLHTTP")XmlHttp.Open "GET","http://www.baidu.com/s?wd="&key&"&pn="&request("pn"), false XmlHttp.setRequestHeader "Content-Type","text/XML" XmlHttp.Senddq = bytes2BSTR(XmlHttp.responseBody)End Function
Function BR(Str)Str = Replace(Str,"{br}","
")Str = Replace(Str,vbcrlf,"
")Str = Replace(Str,"
","
")Str = Replace(Str,"
","
")Str = Replace(Str,"
","
")BR = StrEnd Function
function ubb(str)
if instr(str,"관련 페이지 찾기")=0 thenubb="아무것도 검색 되 지 않 았 습 니 다"exit functionend if
str = Replace(str,vbcrlf,"{br}")str = Replace(str,"
","{br}")str = Replace(str,"",""&vbcrlf)str = Replace(str,"
re.Pattern=".*\(.*)\<\/td>"
Set Matches = re.Execute(str)
Matchesubb=ubb&BR(Match.value)다음.Pattern="(\\-\\\\\-\\
".Pattern="(해당 페이지 를 찾 습 니 다.*초)"Set Matches=re.Execute(str)set Match=Matches(0)ubb=ubb&Match&"
"
str = Replace(str,"",""&vbcrlf)
re.Pattern="\
(.*)\<\/div>"Set Matches = re.Execute(str)set Match = Matches(0)Dim TheLinkTheLink = Matchre.Pattern="href=s?(.[^>]*)"TheLink = re.replace(TheLink,"href=""$1""")
ubb = ubb & TheLinkend function
if len(request("wd")) > 0 thenresponse.write dq(request("wd"))end if%>
ubb = ubb & TheLinkend function
if len(request("wd")) > 0 thenresponse.write dq(request("wd"))end if%>