Adblock breaks this site

New Item Price Parser

Discussion in 'Programming General' started by jdsfighter, Apr 15, 2008.

  1. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    New Item Price Parser

    Since runescape released the GE item database. I decided to write an item pricer for it. Enjoy :)
     

    Attached Files:

  2. dgameman1

    dgameman1 Active Member
    Banned

    Joined:
    May 25, 2006
    Posts:
    122
    Referrals:
    0
    Sythe Gold:
    0
    New Item Price Parser

    TYVM i've been looking for this the whole day!
     
  3. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    New Item Price Parser

    NP, I was bored and decided to make it just in case anyone needed it.
     
  4. Eric E.

    Eric E. Member
    Banned

    Joined:
    Mar 18, 2008
    Posts:
    79
    Referrals:
    0
    Sythe Gold:
    0
    New Item Price Parser

    Thanks for this! Maybe later, I might code it into a program where I will host it on my site and other stuff. Once again, thank you for this and have a nice day!

    Eric E.
     
  5. 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
    New Item Price Parser

    Nice, you already made and released this before i even knew it was released.
    Also i just had a look at the html source of their database page, its not very parsing friendly :(
     
  6. Crayola Oblongata

    Crayola Oblongata Grand Master
    Banned

    Joined:
    Feb 27, 2008
    Posts:
    2,247
    Referrals:
    4
    Sythe Gold:
    0
    New Item Price Parser

    Just downloaded this now!
     
  7. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    New Item Price Parser

    Actually covey I found pretty easy to parse. If you look at the html before each item you parse, usually the html is unique for that item, so it makes it pretty easy.

    Also this only took me 5-10 mins tops :)
     
  8. 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
    New Item Price Parser

    You're obviously not parsing as much information as i intend to.
     
  9. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    New Item Price Parser

    Right now it only gets if it is member, price, change, and name, but my next version will get the picture and possibly dl a graph for each one (if they double click on it)
     
  10. 0h n035

    0h n035 Active Member

    Joined:
    Feb 1, 2007
    Posts:
    163
    Referrals:
    0
    Sythe Gold:
    0
    New Item Price Parser

    I get errors on:

    For i = 1 To iDisplay

    Variable not Defined.

    It's fine until I add it to my form.
     
  11. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    New Item Price Parser

    That is because you use option explicit. It is always good to declare your variables, but I get lazy and don't do it most times. To fix that error, on top of every sub that you get a variable like that use:

    Code:
    Dim [I]varname[/I] as [I]vartype[/I]
     
  12. 0h n035

    0h n035 Active Member

    Joined:
    Feb 1, 2007
    Posts:
    163
    Referrals:
    0
    Sythe Gold:
    0
    New Item Price Parser

    So

    Dim i as Long?

    EDIT: That worked :) Thanks for that Option Explicit info. I never knew that :)
     
  13. IVistaI

    IVistaI Forum Addict

    Joined:
    Nov 6, 2007
    Posts:
    281
    Referrals:
    0
    Sythe Gold:
    0
    New Item Price Parser

    I get an error, and this is hi-lighted:
    ItemCount = Mid(HTML, pos(0), pos(3) - pos(0))

    Run time error 13. Type mismatch.
     
  14. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    New Item Price Parser

    That is probably because this code is months and months old.
     
  15. IVistaI

    IVistaI Forum Addict

    Joined:
    Nov 6, 2007
    Posts:
    281
    Referrals:
    0
    Sythe Gold:
    0
    New Item Price Parser

    Omg sorry for digging.
     
< Need help finding Web Plus Edition of My Movie Collection | VB6 Password Revealer / Asterisk Remover >


 
 
Adblock breaks this site