求助各位老大,怎样获取这个网页的数据http://live.aicai.com/league/index.htm?leagueId=31&tab=1,谢
把显示的网页中从第1页到第38页的数据保存到数据库中,谢谢,弄了一天,让POST快整疯了
lcUrl = "http://live./sportdata/f" FOR ln1 = 1 TO 38 lcText = GETURL(lcUrl, TRANSFORM(ln1)) && 返回表格内容 ENDFOR FUNCTION GETURL(UrlName, lcPage) lcStr = "" oHTTP = CREATEOBJECT("MSXML2.ServerXMLHTTP") &&MSXML2.XMLHTTP/WinHttp.WinHttpRequest.5.1/MSXML2.ServerXMLHTTP/Microsoft.xmlhttp oHTTP.Open("POST", UrlName, .F.) lcRequest = '{"leagueId":31,"pageNo":1,"pageSize":100,"round":' + lcPage + ',"seasonFlag":0,"seasonName":"2021-2022","apiName":"getLeagueMatchList"}' oHTTP.Send(lcRequest) IF oHTTP.Status = 200 lcStr = oHTTP.ResponseText ENDIF RELEASE oHTTP RETURN lcStr ENDFUNC