Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting text from another web page

Status
Not open for further replies.

MikeT

IS-IT--Management
Feb 1, 2001
376
US
I need to read in large amounts of ascii data from another off-site web page. Is this possible? I tried using the FileSystemObject with the complete url of the page as an argument, but it didn't work.

Any ideas?
 
This would be an example of the page:

-html-
-body-
-pre-
12 45 30 72 12 65
94 81 64 01 79 12
-/pre-
-/body-
-/html-

I used '-' instead of '<' because I don't know it the server would actually process it, but you get the point.
The page actaully contains thousands of number sets like that.
If I save the file to my hard disk, I can extract and process the numbers easily (without altering the page at all), but this page is updated daily, and I don't want to have to manually save it every day.
There's got to be a way for an asp to read in the source of another page! Or perhaps Javascript?

If you need anyother info just ask!

Thanks
 
there is a n way (what i know) but all u need is to create an main page with an frame witch source will be the page u wanted and then from tha main page u could use the -pre- tag to extract all text in there and then save it ot an file
this could be done by a script

but need one person to acess the main page and then the script from the main page automatically will save the text in an file... ________
George, M
email : shaddow11_ro@yahoo.com
 
So I could point the link to this frame page, save the pages source to a file like you say, then autodirect them to the page I want them to see......interesting, I just may try that.
 
Hi

Did you try just including the file with
<!--#include file=&quot;./path/file.txt&quot; -->

Bye.
 
Use the MS XML object. You will need to have MSXML Toolkit installed on the server though, heres an example

set oweb = server.createobject (&quot;msxml2.serverxmlhttp&quot;)
oweb.open (&quot;GET&quot;,&quot;oweb.send
response.write oweb.responseText


I hope this helps, if you need the XML toolkit search the microsoft.com site, its a free download :) Gordon R. Durgha
gd@vslink.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top