|
Home > Archive > IIS ASP > May 2004 > Here's a doosey
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| David C. Holley 2004-05-30, 11:54 am |
| I'm about to massively rework how my site handles links. The concept
behind the site is to provide a wide-collection of links related to
attractions in and around Orlando as well as other sites of interest. I
am REALLY, REALLY, REALLY wanting to provide an option where
descriptions of the sites are displayed. I would like to know is wether
or not there is a way for an ASP page to read the METTA tags on another
page and retrieve the value. Given the total number of links involved, I
want to come up with a way where an ASP script reaches out to the
various links and captures the description of the site. If it looks like
a spider, acts like a spider and makes girls screem like they've seen a
spider, then maybe, just maybe it is a spider.
| |
| dlbjr 2004-05-30, 11:54 am |
| Dim strMetaData
Set LP = New LinkParser
'Pass a url to the object
LP.Process "http://www.microsoft.com"
strMetaData = LP.GetMetaData()
Set LP = Nothing
Class LinkParser
Private mstrResult
Public Function GetMetaData()
'Parse meta data here with some reg ex.
End Function
Public Function Process(strUrl)
If Len(strUrl) > 0 Then
On Error Resume Next
Set XmlHttp = CreateObject("Microsoft.XMLHTTP")
XmlHttp.open "GET",strUrl, false
XmlHttp.send
mstrResult = lCase(Trim(XmlHttp.ResponseText))
Set XmlHttp = Nothing
End If
End Function
End Class
-dlbjr
Discerning resolutions for the alms
|
|
|
|
|