How to get a string from a html source code?

  • Thread starter Thread starter Luk
  • Start date Start date
L

Luk

Hello,

i need to get a string / some strings from a html source code
(external)

url: http://wow.buffed.de/?c=2170577&tab=8

there are under "Scherbenwelt" these strings:

Ehrenfeste
Wohlwollend
6107 / 12000

how i can get them through a vb.net application?

can anyone post me an sample sourcecode?

thx anyway!

Greets, Lukas
 
Hi Luk,

i need to get a string / some strings from a html source code
(external)

\\
Dim br As New WebBrowser
Dim Text, cuttext As String
br.Navigate("http://wow.buffed.de:80/?c=2170577&tab=8")
While Not br.ReadyState = WebBrowserReadyState.Complete
Application.DoEvents()
End While

Text = br.DocumentText
//

You got the HTML Code in the String "Text". Now you need to learn HTML.
Search the Internet for SelfHTML. The Information you need is Stored in a
Table. You can find the Pos, then cut the line from the table an extract in
a nother string by only using the commands mid and instr. But it is not as
easy as you might think.

\\
Dim p1, p2 As Integer
p1 = InStr(Text, "Scherbenwelt")
p2 = InStr(Text, "Sonstige")
cuttext = Mid(Text, p1, p2 - p1)

MsgBox(cuttext)
//

Niels Wiederanders
 
how would this be done on VS 2003? I haven't been able to get VS 2005
to stop crashing; so Im going back to 2003

I just wish MS would hire some goddamn testers; this shouldn't be
thrown onto Developers, Developers, Developers
 
Back
Top