🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
4 messages
4 total messages Started by LarryJ Thu, 09 Sep 2004 07:40
Download web page as source text
#1549
Author: LarryJ
Date: Thu, 09 Sep 2004 07:40
8 lines
1221 bytes
I am trying to create a stock quote downloader.  Is possible to download a
web page just as the source text. For example when you select View->Source
and all the HTML is shown in a text file. Can we download just this text
file of source. There are a lot of internet components in BCB6.0 which would
be the best to do this?

Thanks
Larry Johnson
Re: Download web page as source text
#1550
Author: Hans Galema
Date: Thu, 09 Sep 2004 08:54
14 lines
1660 bytes
LarryJ wrote:

> I am trying to create a stock quote downloader.  Is possible to download a
> web page just as the source text. For example when you select View->Source
> and all the HTML is shown in a text file. Can we download just this text
> file of source. There are a lot of internet components in BCB6.0 which would
> be the best to do this?

If you only want the page to parse it or so then a HTTP component will
do. If you also want to display the page then TCppWebbrowser will
display the page. After that you need code to get the page from
TCppWebbrowser. That code has been published many times in this group.

Hans.
Re: Download web page as source text
#1556
Author: LarryJ
Date: Thu, 09 Sep 2004 23:06
19 lines
1680 bytes
I am using the Net Master component NMHTTP1 to get a web page. I can not
figure how to copy the web page source into a TRichEdit. I did search the
old newsgroup posts but only find example of saving to a file on the hard
drive. I want the source text in the TRichEdit so I can search through the
text for stock prices.

Thanks
Larry Johnson

"Hans Galema" <dontusethis@dontusethis.nl> wrote in message
news:41401985$1@newsgroups.borland.com...

>
> If you only want the page to parse it or so then a HTTP component will
> do. If you also want to display the page then TCppWebbrowser will
> display the page. After that you need code to get the page from
> TCppWebbrowser. That code has been published many times in this group.
>
> Hans.
Re: Download web page as source text
#1557
Author: Hans Galema
Date: Fri, 10 Sep 2004 09:24
15 lines
1514 bytes
LarryJ wrote:
> I am using the Net Master component NMHTTP1 to get a web page. I can not
> figure how to copy the web page source into a TRichEdit. I did search the
> old newsgroup posts but only find example of saving to a file on the hard
> drive. 

In the borland demo example you can see how it goes:

Assuming the URL in in Edit1.

	NMHTTP1->InputFileMode=FALSE;
	NMHTTP1->Get (WideString(Edit1->Text ) );
	Memo1->Text = NMHTTP1->Body;

Hans.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads