How do I get rss feed xml schema back from twitter api in Classic ASP into an local file -
here asp file calling url:
<% response.expires = -1 urltorss = "https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=nrcgov" set xmlhttp = server.createobject("msxml2.serverxmlhttp.6.0") xmlhttp.setproxy 2, "www.proxy.nrc.gov:80" xmlhttp.open "get", urltorss, false xmlhttp.send() rssxml = xmlhttp.responsetext response.write(rssxml) %>
i want regurgitate xml schema located @ url file on local server. whenever run question mark in browser window no errors in window, runtime or in console. tried outputting rssxml asp so:
<% urltorss = "https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=nrcgov" set xmlhttp = server.createobject("msxml2.serverxmlhttp.6.0") xmlhttp.setproxy 2, "www.proxy.nrc.gov:80" xmlhttp.open "get", urltorss, false xmlhttp.send() rssxml = xmlhttp.responsetext set xmldom = server.createobject("msxml2.domdocument") xmldom.async = false xmldom.setproperty "serverhttprequest", true xmldom.load(rssxml) set itemlist = xmldom.selectnodes("rss/channel/item") each itemattrib in itemlist newssubject =itemattrib.selectsinglenode("title").text newsextract =itemattrib.selectsinglenode("description").text newsdate =itemattrib.selectsinglenode("pubdate").text %> <div> <div><%=newssubject%></div> <div><%=newsdate%></div> <div><%=newsextract%></div> </div> <% next set xmldom = nothing set itemlist = nothing %>
i di error once saying invalid character in context once disappeared. xml displays fine in browser windows , checked make sure versions of xml running on theserver sent request out through proxy. out of ideas. help?
Comments
Post a Comment