|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi everyone, I am looking to find out how to grab a specific content on a particular Website and put it on my Website. Of course, I will get permissions before doing so. Any ideas? I have found a sample ASP script that shows how to grab the entire page, but certain sections of the page. Any help would be appreciated, thankyou!
Last edited by onLOoker : February 22nd, 2004 at 04:27 PM. |
|
#2
|
|||
|
|||
|
The ASP script below grabs the entire Webpage. How do you grab only the desire content within that page?
<% Response.Buffer = True Dim objXMLHTTP, xml ' Create an xmlhttp object: Set xml = Server.CreateObject("Microsoft.XMLHTTP") ' Or, for version 3.0 of XMLHTTP, use: ' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP") ' Opens the connection to the remote server. xml.Open "GET", "http://www.yahoo.com", False ' Actually Sends the request and returns the data: xml.Send 'Display the HTML both as HTML and as text Response.Write "<h1>The HTML text</h1><xmp>" Response.Write xml.responseText Response.Write "</xmp><p><hr><p><h1>The HTML Output</h1>" Response.Write xml.responseText Set xml = Nothing %> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Grab specific Web content? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|