Results 1 to 10 of 10

Thread: GetPage

  1. #1
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default GetPage

    Im wondering how would i get a 1-3 digit number from a site. When the number could be anywhere in the site (html look)
    I also noticed that a "String" cant handle that many "letters". is there anything like "long string" etc?

    -Thank you.

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  2. #2
    Join Date
    Mar 2007
    Posts
    3,681
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    use between and getpage i guess

  3. #3
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by hugolord View Post
    use between and getpage i guess
    How could i use between when the whole site doesent "fit" into the string? How would i make it "GetPage" the next part?

    Example if u didnt understand:

    SCAR Code:
    String:= Getpage
    // String now contains:
    String:= 'blablablalbalbablablablabalbalblablablalbalbal';
    //The numbers i need is further down the page.

    Atleast acording to "Writeln"

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  4. #4
    Join Date
    Feb 2006
    Posts
    433
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Is WideString a type in SCAR?

  5. #5
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Ill test..

    It has it. Dunno if it works.

    EDIT: Its longer than string.. But i need even LONGER!

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  6. #6
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Could you please explain your problem more..? May I see the website or can you tell us how long it is?
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  7. #7
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    its almost this long: http://en.wikipedia.org/wiki/SCAR_%2...ng_language%29

    Bit longer.

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  8. #8
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    This is Cheesehunks hello world program, edited. All credit to him.

    SCAR Code:
    function Get: String;
    var S: String;
    begin
      S := GetPage('http://en.wikipedia.org/wiki/SCAR_%28programming_language%29');
      S := Between('where you can download ', 'as well as scripts.', S);
      Delete(S, Pos('<b>', S), 3);
      Result := S;
    end;

    begin
      WriteLn(Get);
    end.

    I don't see the problem. It gets the text right at the bottom of the page.

    Did I help at all ?

  9. #9
    Join Date
    Feb 2006
    Posts
    433
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wtf? WideString can store like 2Gb.

  10. #10
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    LOOOL i just noticed .. .i wasent even loggedin at the site xDD so not even wondering why it didnt work

    TYY all anyway.

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. GetPage?
    By Illkillutill in forum OSR Help
    Replies: 7
    Last Post: 03-08-2009, 04:29 AM
  2. GetPage
    By mat_de_b in forum OSR Help
    Replies: 4
    Last Post: 11-04-2007, 09:48 PM
  3. GetPage
    By Martin in forum OSR Help
    Replies: 0
    Last Post: 04-16-2007, 05:52 PM
  4. help with GetPage
    By omgh4x0rz in forum OSR Help
    Replies: 6
    Last Post: 03-11-2007, 12:44 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
  •