On Fri, 13 May 2005 04:01:46 GMT, "James Taylor" <texjet3@[EMAIL PROTECTED]
>
wrote:
>Automatically access a web page and copy source to a text file.
>
>I have written and debugged a QB45 program that parses a text file for
>specific info that I need and then uses that info to do various things to
>data on my computer. All is working well, but I am lacking one final
>improvement. The data on the web page that I need changes about every
two
>hours and I have to interrupt whatever I am doing periodically and
manually
>go there and view source and then copy (ctrl a, ctrl c) and paste (ctrl
v)
>it into a text file for my program to use later. The timing is no
problem,
>I can easily code that into my program, but I do not know how to get it
to
>go to a specified web page and copy the source text into a file on my
>computer automatically. Will somebody point me in the right direction?
>
>Thanks in advance,
>Jim
>
Not really a QB solution, but I have used Lynx (http://lynx.isc.org/)
for this.
It is possible to start Lynx with DOS command line arguments to
specify the URL to fetch, and save either the HTML code or the
formatted text of the page. Check out the -dump and -source command
line arguments.
-Jim too.


|