|
| Author |
Message |
Lorin
Joined: 04 Oct 2007 Posts: 312
|
Posted: Fri Feb 22, 2008 6:38 pm Post subject: Web Page Data |
|
|
VB6SP6
I have used INET to get web pages and extract data that appears on the web
page.
Now with ASP I would like to understand how to get data from web pages.
Are there any examples on ways to do this?
As you can see, I am not well versed in any of this, so be gentle.
Archived from group: microsoft>public>vb>general>discussion |
|
| Back to top |
|
 |
Jeff Johnson
Joined: 04 Oct 2007 Posts: 1327
|
Posted: Fri Feb 22, 2008 9:53 pm Post subject: Re: Web Page Data |
|
|
"Lorin" wrote in message @microsoft.com...
> VB6SP6
> I have used INET to get web pages and extract data that appears on the web
> page.
> Now with ASP I would like to understand how to get data from web pages.
> Are there any examples on ways to do this?
> As you can see, I am not well versed in any of this, so be gentle.
Well, when you say "With ASP," it suggests you're writing VBScript, not VB,
and therefore I'd be inclined to point you to a scripting or ASP newsgroup. |
|
| Back to top |
|
 |
Lorin
Joined: 04 Oct 2007 Posts: 312
|
Posted: Fri Feb 22, 2008 7:07 pm Post subject: Re: Web Page Data |
|
|
No, VB6
If I use the web browser control or some other control to get the web page.
I understand there is a kind of "document" involved.
I do not know the termnology so it is difficult to look up.
I thought that an ASP page would put text in this document and I may be able
to extract data based on markers or flags or whatever.
Exxpand on that or point me in some other direction please.
"Jeff Johnson" wrote:
> "Lorin" wrote in message
> @microsoft.com...
>
> > VB6SP6
> > I have used INET to get web pages and extract data that appears on the web
> > page.
> > Now with ASP I would like to understand how to get data from web pages.
> > Are there any examples on ways to do this?
> > As you can see, I am not well versed in any of this, so be gentle.
>
> Well, when you say "With ASP," it suggests you're writing VBScript, not VB,
> and therefore I'd be inclined to point you to a scripting or ASP newsgroup.
>
>
> |
|
| Back to top |
|
 |
Lance Wynn
Joined: 05 Dec 2007 Posts: 13
|
Posted: Fri Feb 22, 2008 8:09 pm Post subject: Re: Web Page Data |
|
|
I like the MSXML4 library. It is easy to implement, and seems to perform
very well in ASP.
"Lorin" wrote in message @microsoft.com...
> VB6SP6
> I have used INET to get web pages and extract data that appears on the web
> page.
> Now with ASP I would like to understand how to get data from web pages.
> Are there any examples on ways to do this?
> As you can see, I am not well versed in any of this, so be gentle.
> |
|
| Back to top |
|
 |
christery
Joined: 11 Jan 2008 Posts: 71
|
Posted: Fri Feb 22, 2008 7:48 pm Post subject: Re: Web Page Data |
|
|
On 22 Feb, 22:38, Lorin wrote:
> VB6SP6
> I have used INET to get web pages and extract data that appears on the web
> page.
> Now with ASP I would like to understand how to get data from web pages.
> Are there any examples on ways to do this?
> As you can see, I am not well versed in any of this, so be gentle.
Ill try to be gentle, but oblivian to what that word means.
U get a text from the reader, weather its asp or php or just some
homemade notepad soup...
to get data from that is to find unique markers.. and the 4, 3, 5 who
knows char + u got the data...
parse and enjoy...
Used that thought in a .net (.not) and it works until they remake the
stock market... and then it (the stock) moves to another page...
//CY |
|
| Back to top |
|
 |
Steve Gerrard
Joined: 04 Oct 2007 Posts: 1164
|
Posted: Fri Feb 22, 2008 10:51 pm Post subject: Re: Web Page Data |
|
|
Lorin wrote:
> No, VB6
> If I use the web browser control or some other control to get the web
> page. I understand there is a kind of "document" involved.
> I do not know the termnology so it is difficult to look up.
> I thought that an ASP page would put text in this document and I may
> be able to extract data based on markers or flags or whatever.
> Exxpand on that or point me in some other direction please.
>
In principle, there is no difference between the HTML + JavaScripts send by any
web page server to your browser, whether it is a static HTML page, or one
generated by ASP, PHP, or something else. You can usually tell if it is
generated by ASP, but it is still a DOM Document, with all the usual tags and
ids and what not. |
|
| Back to top |
|
 |
MikeB
Joined: 20 Feb 2008 Posts: 5
|
Posted: Sat Feb 23, 2008 3:56 pm Post subject: Re: Web Page Data |
|
|
"Jeff Johnson" wrote in message@corp.supernews.com...
> "Lorin" wrote in message
> @microsoft.com...
>
> > VB6SP6
> > I have used INET to get web pages and extract data that appears on the
web
> > page.
I did an HTA a few years back utilizing frames. Frame1 contained the
J(ava)Script to open the remote webpage in Frame2, getting a handle to the
page. From there, using the getElementById or whatever function matches the
object markers of the page, retrieve or modify the data on the remote page.
I never used the ITC in VB, but I assume the control has the functionality
of IE, So it is likely this structure would work there as well.
> > Now with ASP I would like to understand how to get data from web pages.
> > Are there any examples on ways to do this?
> > As you can see, I am not well versed in any of this, so be gentle.
>
> Well, when you say "With ASP," it suggests you're writing VBScript, not
VB,
> and therefore I'd be inclined to point you to a scripting or ASP
newsgroup.
>
> |
|
| Back to top |
|
 |
Lance Wynn
Joined: 05 Dec 2007 Posts: 13
|
Posted: Sat Feb 23, 2008 2:31 pm Post subject: Re: Web Page Data |
|
|
I finally got back to my computer that has ASP installed, and I put together
a quick sample asp page for you:
<%
dim MSXML
Dim returnString
set MSXML=server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
MSXML.open "GET","http://www.google.com",false
MSXML.send
returnString = MSXML.responseText
Response.Write(returnString)
%>
"Lance Wynn" wrote in message %23ZdIHA.148@TK2MSFTNGP04.phx.gbl...
>I like the MSXML4 library. It is easy to implement, and seems to perform
>very well in ASP.
>
>
> "Lorin" wrote in message
> @microsoft.com...
>> VB6SP6
>> I have used INET to get web pages and extract data that appears on the
>> web
>> page.
>> Now with ASP I would like to understand how to get data from web pages.
>> Are there any examples on ways to do this?
>> As you can see, I am not well versed in any of this, so be gentle.
>>
>
> |
|
| Back to top |
|
 |
Lorin
Joined: 04 Oct 2007 Posts: 312
|
Posted: Sun Feb 24, 2008 12:27 pm Post subject: RE: Web Page Data |
|
|
All a little cryptic for me.
Point me at whitepapers or tutorials on documents within a web page please.
I was hoping for something a little more sophisticated than parsing.
"Lorin" wrote:
> VB6SP6
> I have used INET to get web pages and extract data that appears on the web
> page.
> Now with ASP I would like to understand how to get data from web pages.
> Are there any examples on ways to do this?
> As you can see, I am not well versed in any of this, so be gentle.
> |
|
| Back to top |
|
 |
Steve Gerrard
Joined: 04 Oct 2007 Posts: 1164
|
Posted: Sun Feb 24, 2008 3:09 pm Post subject: Re: Web Page Data |
|
|
Lorin wrote:
> All a little cryptic for me.
> Point me at whitepapers or tutorials on documents within a web page
> please. I was hoping for something a little more sophisticated than
> parsing.
>
You can wish it was something better, and share that wish with others, but what
you get from an ASP web page remains what you get. Click this link to go to MSDN
as an example of an ASP web page. In your browser, click View, Source (IE); or
View, Page Source (FireFox). What you see is what you get - an extra messy
DOMDocument.
http://msdn2.microsoft.com/en-us/default.aspx
|
|
| Back to top |
|
 |
|
|