Extracting Data

  • Thread starter Thread starter Seven Stars
  • Start date Start date
S

Seven Stars

I have one simple problem I can't seem to figure out. Is there a way
to extract text from the website staring from some specific pointer
and ending at other?

Let's say I want to grab a certain part of the website (insides of the
table)
starting from <tr> to </tr>.

Could someone post vb.net example on how to do this?

Very much appreciated.

Thank you.

7* (Michael)
 
Hi Steven,

You can use for that microsoft.mshtml

With that you can get the src, innertext, value or htmltext from every tag.
(with the tr the innertext)

It is not the easiest stuff to handle.

When you have set a reference don't set a import for this but reference it
everytime individualy in your program because otherwise it is to slow.
Set Option Strict OFF in this case when you are investigating it. Afterwards
you can look how you can (with a lot of casting) set it to On again, but
don't start with doing that.

There are mostly two methods in this class (old and new), if you are able,
use the "2" methods, that is with a 2 at the end they are mostly much
faster.

I hope this helps,

Cor

"> I have one simple problem I can't seem to figure out. Is there a way
 
Back
Top