有时候,需要获取网页的html代码,如新闻采集。采集之前,首页要得到被采集的页面的html代码,然后根据代码,分析出你想要得到的内容,最后将得到的内容保存到自己的数据库中RWT4UqzpY5dZEWSqMZ60BVS4uigV5jXqlwCo47osfunction.asp <%Function getHTTPPage(url) On Error Resume Nextdim http set http=Server.createobject("Microsoft.XMLHTTP") Http.open "GET",url,false Http.send() if Http.readystate<>4 thenexit function end if getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")set http=nothingIf Err.number<>0 then Response.Writ
.... [阅读全文]