Results 1 to 6 of 6

Thread: Google Wars!!!

  1. #1
    Join Date
    Jun 2006
    Location
    USA
    Posts
    428
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Google Wars!!!

    SCAR Code:
    program GoogleWars;

    var
      Page: string;
      R, S: array [0..1] of string;
      i, t1, t2: Integer;

    begin
      ClearDebug;
      try
        for i:= 0 to 1 do
          S[i]:= Readln('Word #' + IntToStr(i + 1) + '?');
        for i:= 0 to 1 do
        begin
          Page:= GetPage('http://www.google.com/search?hl=en&q=' + S[i] +'&btnG=Google+Search');
          R[i]:= Between('about <b>', '</b> for', Page);
        end;
        Writeln('/-------------------------------------------------------\');
        for i:= 0 to 1 do
          Writeln('| -> ' + S[i] + ': ' + R[i]);
        Writeln('|');
        t1:= StrToInt(Replace(R[0], ',', ''));
        t2:= StrToInt(Replace(R[1], ',', ''));
        if(t1 > t2)then
          Writeln('| ' + S[0] + ' is the winner with ' + R[0] + ' results.')
        else
          Writeln('| ' + S[1] + ' is the winner with ' + R[1] + ' results.');
        Writeln('\-------------------------------------------------------/');
      except
        Writeln('SCRIPT ERROR: Please rerun.');
      end;
      Writeln('');
    end.

    'nuff said.

  2. #2
    Join Date
    Jun 2006
    Location
    USA
    Posts
    428
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Records:


    /-------------------------------------------------------\
    | -> linux: 337,000,000
    | -> windows: 50,700,000
    |
    | linux is the winner with 337,000,000 results.
    \-------------------------------------------------------/

    /-------------------------------------------------------\
    | -> god: 24,000,000
    | -> satan: 24,400,000
    |
    | satan is the winner with 24,400,000 results.
    \-------------------------------------------------------/

    3garret3:
    /-------------------------------------------------------\
    | -> Life: 1,100,000,000
    | -> Death: 358,000,000
    |
    | Life is the winner with 1,100,000,000 results.
    \-------------------------------------------------------/

  3. #3
    Join Date
    Jun 2007
    Location
    Varrock East bank,
    Posts
    87
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Dude This Is Sick!
    Shadows-Collide -
    http://i142.photobucket.com/albums/r...ollidesig1.jpg
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig.
    - Shadows-collide -
    -

  4. #4
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    /-------------------------------------------------------\
    | -> Girls: 346,000,000
    | -> Boys: 274,000,000
    |
    | Girls is the winner with 346,000,000 results.
    \-------------------------------------------------------/

    /-------------------------------------------------------\
    | -> Bacon: 37,900,000
    | -> Eggs: 58,500,000
    |
    | Eggs is the winner with 58,500,000 results.
    \-------------------------------------------------------/

    /-------------------------------------------------------\
    | -> Life: 1,100,000,000
    | -> Death: 358,000,000
    |
    | Life is the winner with 1,100,000,000 results.
    \-------------------------------------------------------/

    Just some random things.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  5. #5
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    1,668
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    /-------------------------------------------------------\
    | -> love: 69,600,000
    | -> hate: 16,700,000
    |
    | love is the winner with 69,600,000 results.
    \-------------------------------------------------------/

    /-------------------------------------------------------\
    | -> fire: 23,700,000
    | -> water: 37,200,000
    |
    | water is the winner with 37,200,000 results.
    \-------------------------------------------------------/

    /-------------------------------------------------------\
    | -> sega: 37,300,000
    | -> nintendo: 9,540,000
    |
    | sega is the winner with 37,300,000 results.
    \-------------------------------------------------------/

    Great script
    [IMG]http://farm3.static.flickr.com/2120/2052732965_348f3629d0_o.jpg[/IMG]

  6. #6
    Join Date
    Jun 2006
    Location
    USA
    Posts
    428
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the feedback

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. God wars????
    By Scaper in forum News and General
    Replies: 2
    Last Post: 12-08-2008, 02:38 PM
  2. google
    By dr.quantumphysics in forum Semi Stupid Pictures
    Replies: 7
    Last Post: 01-09-2008, 09:54 PM
  3. Google
    By kaustav_002 in forum Misc. Links and Programs
    Replies: 3
    Last Post: 08-22-2007, 01:28 AM
  4. ~The War To End All Wars~
    By Avaphi in forum Blogs and Writing
    Replies: 1
    Last Post: 01-21-2007, 10:18 PM
  5. Wtf Google?
    By The Prince of Randomness? in forum News and General
    Replies: 4
    Last Post: 06-16-2006, 04:59 AM

Posting Permissions

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