Foros del Web » Programando para Internet » ASP Clásico »

lector rss asp

Estas en el tema de lector rss asp en el foro de ASP Clásico en Foros del Web. HOLA TENGO UN LECTOR DE RSS <% ' change the RSSURL variable to the exact URL of the RSS Feed you want to pull RSSURL ...
  #1 (permalink)  
Antiguo 21/01/2010, 05:07
Avatar de engonga
Usuario no validado
 
Fecha de Ingreso: marzo-2002
Ubicación: Buenos Aires
Mensajes: 1.300
Antigüedad: 22 años, 1 mes
Puntos: 8
lector rss asp

HOLA TENGO UN LECTOR DE RSS

<%
' change the RSSURL variable to the exact URL of the RSS Feed you want to pull
RSSURL = "http://twitter.com/statuses/user_timeline/78665678.rss"

Dim objHTTP ' this object is used to call the RSS Feed remotely
Dim RSSURL,RSSFeed ' these variables hold the URL and Content for the RSS Feed
Dim xmlRSSFeed ' this variable hold the XML data in a DOM Object
Dim objItems,objItem, objChild ' these variables are used to temporarily hold data from the various RSS Items
Dim title,description,link ' these are local variables that will hold the data to be displayed
Dim OutputHTML_1,OutputHTML_2,OutputHTML_3 ' these variables will hold the HTML that was converted from the RSS Feed

' this code requests the raw RSS/XML and saves the response as a string <RSSFeed>
Set objHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")
objHTTP.open "GET",RSSURL,false
objHTTP.send
RSSFeed = objHTTP.responseText

' this code takes the raw RSSFeed and loads it into an XML Object
Set xmlRSSFeed = Server.CreateObject("MSXML2.DomDocument.4.0")
xmlRSSFeed.async = false
xmlRSSFeed.LoadXml(RSSFeed)

' this code disposes of the object we called the feed with
Set objHTTP = Nothing

' this is where you determine how to display the content from the RSS Feed

' this code grabs all the "items" in the RSS Feed
Set objItems = xmlRSSFeed.getElementsByTagName("item")

' this code disposes of the XML object that contained the entire feed
Set xmlRSSFeed = Nothing

' loop over all the items in the RSS Feed
'For x = 0 to objItems.length - 1
For x = 0 to 2
' this code places the content from the various RSS nodes into local variables
Set objItem = objItems.item(x)
For Each objChild in objItem.childNodes
Select Case LCase(objChild.nodeName)
Case "title"
title = objChild.text
Case "link"
link = objChild.text
Case "description"
description = objChild.text
End Select
Next
' Here are some various display samples.
OutputHTML_1 = OutputHTML_1 & "<a href=""" & link & """>" & title & "</a><br />" & description & "<br /><br />"
OutputHTML_2 = OutputHTML_2 & "<a href=""" & link & """ target=""_blank"" class=""blocmes"" style=""padding: 0px 5px 0px 0px;"">@" & title & "</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
OutputHTML_3 = OutputHTML_3 & "<a href=""" & link & """>" & title & "</a><hr />"
Next

%>


que recojo datos de twitter hasta hace un poco funcionava

pero ahora me da el error

msx

Código HTML:
 msxml3.dll error '80072efd'  
A connection with the server could not be established   
/includes/lector_twiter.asp, line 15 
al

alguie



alguien sabe por que?
  #2 (permalink)  
Antiguo 09/04/2010, 19:37
Avatar de engonga
Usuario no validado
 
Fecha de Ingreso: marzo-2002
Ubicación: Buenos Aires
Mensajes: 1.300
Antigüedad: 22 años, 1 mes
Puntos: 8
Respuesta: lector rss asp

hola de nuevo tengo el lector de rss en asp y he canviado de servidor

y ahora me da el siguiente error

Código:
Server objecterror 'ASP 0177 : 800401f3'
Server.CreateObject Failed 
/includes/lector_twiter.asp, line 20 800401f3  
en la linea 20 tengo

Set xmlRSSFeed = Server.CreateObject("MSXML2.DomDocument.4.0")

en el antiguo servidor funcionava ya que este post lo abri cuando twitter se cayó!!!


si me pueden hechar una mano... gracias
  #3 (permalink)  
Antiguo 10/04/2010, 05:23
Avatar de Valery-Net  
Fecha de Ingreso: agosto-2008
Mensajes: 694
Antigüedad: 15 años, 7 meses
Puntos: 12
Respuesta: lector rss asp

El último error indica que el control no está registrado en el servidor o no tiene los permisos adecuados.
  #4 (permalink)  
Antiguo 10/04/2010, 05:26
Avatar de engonga
Usuario no validado
 
Fecha de Ingreso: marzo-2002
Ubicación: Buenos Aires
Mensajes: 1.300
Antigüedad: 22 años, 1 mes
Puntos: 8
Respuesta: lector rss asp

solucionado ya lo tengo solucionado

midifique esto MSXML2.DomDocument.4.0

por esto MSXML2.DomDocument.3.0

Etiquetas: asp, lector, rss
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:29.