I was wondering if anyone knows how to download all the text (and only the text) from a webpage in VB6?
09-01-2003 at 10:40 PM
|
vbgen Level: Moderator Registered: 10-10-2002 Posts: 876
Izzit Possibil?
quote:oxfordtgp wrote:
Hi!
I was wondering if anyone knows how to download all the text (and only the text) from a webpage in VB6?
is this possible? JL?
all ican do right now is to just download the source code of the internet page..
is that what you are asking?
well, anyway, here's code for what i have.
' No declerations
' just place a microsft internet transfer control 6.0 on your form and a txtbox
Private Sub Form_Load()
Inet1.OpenURL ("http://www.andreavb.com")
Text1.Text = Text1 & Inet1.OpenURL
End Sub
sorry if this ain't what yer lookin' for.
____________________________
Been busy trying to take a second degree <--it's not working out...
10-01-2003 at 06:00 PM
|
JLRodgers Level: Moderator Registered: 04-04-2002 Posts: 1616
Re: Download text from a webpage
Well, in order to get the text, you have to get the code for the page. Getting rid of the HTML stuff could be tricky, but not impossible.
____________________________ Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
10-01-2003 at 08:02 PM
|
vbgen Level: Moderator Registered: 10-10-2002 Posts: 876
Re: Re: Download text from a webpage
quote:JLRodgers wrote:
Well, in order to get the text, you have to get the code for the page. Getting rid of the HTML stuff could be tricky, but not impossible.
i totally agree...
that's what i also wanted to mention...
it would be really tedious to code for removing the other stuff, though i think the code i posted is the starting point of this inevitable madness.
____________________________
Been busy trying to take a second degree <--it's not working out...