<script language="jscript" runat="server">
function rssGet(url) {
var x = new ActiveXObject("MSXML2.XMLHTTP");
x.open("GET", url, false);
x.send(null);
x = x.responseXML;
var list = x.selectNodes("/rss/channel/item");
for (var i=0; i<list.length; i++) {
var title = list.item(i).selectSingleNode('title').text;
var content = list.item(i).selectSingleNode('description').text;
// title , content 存入库
}
}
rssGet("http://www.ialvin.cn/blog/feed.asp"); // 抓混混博客的日志
</script>