• Log in or sign up for an account here: https://www.sythe.org/login

RS Grand Exchange info Grabber [Source]

Cody8295

Newcomer
Joined
Nov 5, 2011
Sythe Gold
0
Messages
9
2011-11-04_1253.png


Code:
  Dim Name, GuidePrice, Change, ChangeParsed, Gold As String
  Dim wc As New Net.WebClient
  Dim Source As String = wc.DownloadString("http://services.runescape.com/m=itemdb_rs/results.ws?query=rune&price=all&members=")
  For i As Integer = 6 To 65 Step 3
    Name = Split(Source, "alt=""")(i).Split("""")(0)
    ListView1.Items.Add(Name)
    GuidePrice = Split(Source, Name)(2).Split("</td")(3)
    ListView1.Items.Item(ListView1.Items.Count - 1).SubItems.Add(GuidePrice.Substring(GuidePrice.IndexOf(">") + 1))
    Change = Split(Source, Name)(2).Split("class=""")(1)
    ChangeParsed = Split(Change, ">")(1).Split("<")(0)
    ListView1.Items.Item(ListView1.Items.Count - 1).SubItems.Add(ChangeParsed)
    Gold = Split(Source, Name)(2).Split(""">")(5)
    ListView1.Items.Item(ListView1.Items.Count - 1).SubItems.Add(Gold)
  Next


Enjoy.
 
I'm new to VB.

I made a listview with these Columns, but where do I put the code? Cus i've put it in form load and it works with no errors but the listview doesn't display anything.

Please help :S
 
duelarena.gg
Back
Top