Adblock breaks this site

RS Grand Exchange info Grabber [Source]

Discussion in 'Programming General' started by Cody8295, Nov 6, 2011.

  1. Cody8295

    Cody8295 Newcomer

    Joined:
    Nov 5, 2011
    Posts:
    9
    Referrals:
    0
    Sythe Gold:
    0
    RS Grand Exchange info Grabber [Source]

    [​IMG]

    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.
     
  2. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    RS Grand Exchange info Grabber [Source]

    nice first post
     
  3. Cody8295

    Cody8295 Newcomer

    Joined:
    Nov 5, 2011
    Posts:
    9
    Referrals:
    0
    Sythe Gold:
    0
    RS Grand Exchange info Grabber [Source]

    Thanks bro, I really do love VB.NET.
     
  4. Saphir Dice

    Saphir Dice Active Member
    Banned

    Joined:
    Nov 3, 2011
    Posts:
    238
    Referrals:
    0
    Sythe Gold:
    0
    RS Grand Exchange info Grabber [Source]

    So nice BRO!
     
  5. Cody8295

    Cody8295 Newcomer

    Joined:
    Nov 5, 2011
    Posts:
    9
    Referrals:
    0
    Sythe Gold:
    0
    RS Grand Exchange info Grabber [Source]

    Thanks for the comment.
     
  6. rally

    rally Member
    Banned

    Joined:
    Nov 13, 2011
    Posts:
    25
    Referrals:
    0
    Sythe Gold:
    0
    RS Grand Exchange info Grabber [Source]

    very nice, i might use this for something im working on
     
  7. Blupig

    Blupig BEEF TOILET
    $5 USD Donor

    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant
    RS Grand Exchange info Grabber [Source]

    Lol I like how you didn't use Mid() or InStr() once :p
     
  8. SiiLeNtaLK

    SiiLeNtaLK Member
    Banned

    Joined:
    Nov 14, 2011
    Posts:
    72
    Referrals:
    0
    Sythe Gold:
    0
    RS Grand Exchange info Grabber [Source]

    Looks sweet ;O
     
  9. Cody8295

    Cody8295 Newcomer

    Joined:
    Nov 5, 2011
    Posts:
    9
    Referrals:
    0
    Sythe Gold:
    0
    RS Grand Exchange info Grabber [Source]

    Haha, I love the Split() method..
     
  10. hellohippo

    hellohippo Newcomer

    Joined:
    Dec 4, 2011
    Posts:
    2
    Referrals:
    0
    Sythe Gold:
    0
    RS Grand Exchange info Grabber [Source]

    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
     
  11. Cody8295

    Cody8295 Newcomer

    Joined:
    Nov 5, 2011
    Posts:
    9
    Referrals:
    0
    Sythe Gold:
    0
    RS Grand Exchange info Grabber [Source]

    Are you sure the ListView's display property is on "details".
     
  12. hellohippo

    hellohippo Newcomer

    Joined:
    Dec 4, 2011
    Posts:
    2
    Referrals:
    0
    Sythe Gold:
    0
    RS Grand Exchange info Grabber [Source]

    yep :S
     
  13. itsjustme

    itsjustme Member

    Joined:
    Jan 15, 2012
    Posts:
    42
    Referrals:
    0
    Sythe Gold:
    0
    RS Grand Exchange info Grabber [Source]

    just the source. No tutorial :(
    I think you just copy/paste.
     
< Help With JAVA Work Sheet (Recursion) | Diet Calculator >


 
 
Adblock breaks this site