hijackle 当前离线
一级士官
522235677 (张三)当前离线
少校
TOP
apang 当前离线
上将
url = "http://lolbox.duowan.com/playerDetail.php?serverName=%E5%AE%88%E6%9C%9B%E4%B9%8B%E6%B5%B7&playerName=%E6%88%91%E6%98%AF%E4%BB%96%E5%B9%B2%E7%88%B9" Set http = CreateObject("MSXML2.XMLHTTP") http.Open "GET", url, false http.Send pattern = "(被赞|被拉黑) +(\d+)|>(战斗力)<[\s\S]*?>(\d+)<" MsgBox GetData(http.ResponseBody, pattern) Function GetData(bin, ByVal pattern) with CreateObject("ADODB.Stream") .Mode = 3 .Type = 1 .Open .Write bin .Position = 0 .Type = 2 .Charset = "utf-8" txt = .ReadText End with Set re = New RegExp re.Pattern = pattern re.Global = true For Each m in re.Execute(txt) If m.SubMatches(0) <> "" Then s = s & m.SubMatches(0) & vbTab s = s & m.SubMatches(1) & vbCrLf Else s = s & m.SubMatches(2) & vbTab s = s & m.SubMatches(3) & vbCrLf End If Next GetData = s End Function复制代码
普大喜奔 当前离线
CrLf 当前离线
论坛巡查
php -r "preg_match_all('/(被赞|被拉黑) +(\d+)|>(战斗力)<[\s\S]*?>(\d+)</',iconv('utf-8','gbk',file_get_contents($argv[1])),$match);foreach($match as $a){echo $a[1],$a[2];}" "http://lolbox.duowan.com/playerDetail.php?serverName=%E5%AE%88%E6%9C%9B%E4%B9%8B%E6%B5%B7&playerName=%E6%88%91%E6%98%AF%E4%BB%96%E5%B9%B2%E7%88%B9" 复制代码
boyangcoco 当前离线
列兵
pcl_test 当前离线
荣誉版主
Set ie = CreateObject("InternetExplorer.Application") ie.Visible = true ie.navigate "http://lolbox.duowan.com/playerDetail.php?serverName=%E5%AE%88%E6%9C%9B%E4%B9%8B%E6%B5%B7&playerName=%E6%88%91%E6%98%AF%E4%BB%96%E5%B9%B2%E7%88%B9" Do WSH.Sleep 500 Loop Until ie.readyState = 4 info = "" For Each div in ie.Document.getElementsByTagName("div") If div.className = "text" Then info = info & replace(div.innerText, vbCrLf, " ") If div.className = "fighting" Then info =info & " " & replace(div.innerText, vbCrLf, " ") & vbCrLf If div.className = "com-hero" Then info = info & div.getElementsByTagName("h3")(0).innerText & ":" & vbCrLf For Each img in div.getElementsByTagName("img") info = info & img.src & vbCrLf Next End If If div.className = "mod-tabs" Then Set table = div.getElementsByTagName("table") For Each td in table(0).getElementsByTagName("tr")(1).getElementsByTagName("td") info = info & td.innerText & " " Next info = info & vbCrLf For Each td in table(1).getElementsByTagName("tr")(1).getElementsByTagName("td") info = info & td.innerText & " " Next End If Next msgbox info ie.quit复制代码