msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Web Page Data

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB General Discussions
Author Message
Lorin



Joined: 04 Oct 2007
Posts: 312

PostPosted: Fri Feb 22, 2008 6:38 pm    Post subject: Web Page Data Reply with quote

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
View user's profile Send private message
Jeff Johnson



Joined: 04 Oct 2007
Posts: 1327

PostPosted: Fri Feb 22, 2008 9:53 pm    Post subject: Re: Web Page Data Reply with quote

"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
View user's profile Send private message
Lorin



Joined: 04 Oct 2007
Posts: 312

PostPosted: Fri Feb 22, 2008 7:07 pm    Post subject: Re: Web Page Data Reply with quote

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
View user's profile Send private message
Lance Wynn



Joined: 05 Dec 2007
Posts: 13

PostPosted: Fri Feb 22, 2008 8:09 pm    Post subject: Re: Web Page Data Reply with quote

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
View user's profile Send private message
christery



Joined: 11 Jan 2008
Posts: 71

PostPosted: Fri Feb 22, 2008 7:48 pm    Post subject: Re: Web Page Data Reply with quote

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... Sad and then it (the stock) moves to another page...


//CY
Back to top
View user's profile Send private message
Steve Gerrard



Joined: 04 Oct 2007
Posts: 1164

PostPosted: Fri Feb 22, 2008 10:51 pm    Post subject: Re: Web Page Data Reply with quote

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
View user's profile Send private message
MikeB



Joined: 20 Feb 2008
Posts: 5

PostPosted: Sat Feb 23, 2008 3:56 pm    Post subject: Re: Web Page Data Reply with quote

"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
View user's profile Send private message
Lance Wynn



Joined: 05 Dec 2007
Posts: 13

PostPosted: Sat Feb 23, 2008 2:31 pm    Post subject: Re: Web Page Data Reply with quote

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
View user's profile Send private message
Lorin



Joined: 04 Oct 2007
Posts: 312

PostPosted: Sun Feb 24, 2008 12:27 pm    Post subject: RE: Web Page Data Reply with quote

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
View user's profile Send private message
Steve Gerrard



Joined: 04 Oct 2007
Posts: 1164

PostPosted: Sun Feb 24, 2008 3:09 pm    Post subject: Re: Web Page Data Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB General Discussions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group