Results 1 to 2 of 2

Thread: GE Price Grabber

  1. #1
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default GE Price Grabber

    I need one.
    Post yours/a link to one that works please.
    The simpler/cleaner the better!

  2. #2
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Does the one in SRL not work?
    Simba Code:
    function GetPrice(id : integer) : integer;
    var
      s : string;
      i : integer;
    begin
      s := between('<td>', '</td>', GetPage('http://services.runescape.com/m=itemdb_rs/viewitem.ws?obj=' + IntToStr(id)));
      if s = '' then exit;
      result := Round(StrToFloat(copy(s, 1, length(s) - integer(ord(s[length(s)]) > 97))) * pow(10, (Integer(s[length(s)] = 'k') * 3) or (Integer(s[length(s)] = 'm') * 6) or (Integer(s[length(s)] = 'b') * 9) or 0));
    end;
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •