|
Sub Main()
Dim strText As String
Dim t As Long
t = DateDiff("s", "01/01/1970 00:00:00", Now())
t = CLng(t) - 8 * 60 * 60
Debug.Print t
URL = "http://lq3.win007.com/"
URL = URL & "NBA/change.xml?" & t & "000"
With CreateObject("WinHttp.WinHttpRequest.5.1") 'CreateObject(MSXML2.XMLHTTP"WinHttp.WinHttpRequest.5.1")
.Open "GET", URL, False
'.setrequestheader "bskbetcookie", "bskbetCookie=0^1^1^0^9^2^1^1^2"
.setrequestheader "Referer", "http://lq3.win007.com/nba.htm"
'.setrequestheader "User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
.Send
strText = .responsetext
Debug.Print strText
End With
End Sub
|
|