Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How do I let some script read my stats from the RS hiscores?

Featured Replies

I was thinking of making a little html page (maybe include php or something else if necessary). The goal for this page would be to go to the hiscores (the new stats page thingy should allow for that to be done easily:

 

 

 

 

 

 

 

 

 

 

And then save these stats on the html page itself online (or even better) to my hard drive, but I suppose that'd be a bit more complicated to do.

 

 

 

 

 

 

 

If anyone could help me by explaining how to leech this info from the RS hiscores and have them saved in some place please tell me :) This would at first let me keep track of my progress on a daily base and I was thinking of doing some more nicer things with it later on as well :)

 

 

 

 

 

 

 

thanks,

 

 

 

 

 

 

 

...Silver24-7

Do you have any html or php experience?

[hide=Drops]

  • Dragon Axe x11
    Berserker Ring x9
    Warrior Ring x8
    Seercull
    Dragon Med
    Dragon Boots x4 - all less then 30 kc
    Godsword Shard (bandos)
    Granite Maul x 3

Solo only - doesn't include barrows[/hide][hide=Stats]

joe_da_studd.png[/hide]

  • Author

I have some html experience but I'm going to need some help if php is required.

 

 

 

Maybe a link to a tutorial could get me started but I'd have to find some part specifically explaining how to copy and save data from a certain internet adress...

Ok this took a while to get right.

 

 

 

<?php



$file=fopen("stats.txt","w");



fwrite($file,rtrim(file_get_contents("http://hiscore.runescape.com/index_lite.ws?player=minicale")));



fclose($file);







$file=fopen("stats.txt","r");







while(!feof($file))



 {



$str=fgets($file);







print_r(explode("," ,$str));



echo "

";







 }



fclose($file);



?>



 

 

 

 

 

 

 

The first bit retrieves the data from the runescape highscore page and puts it into a text file.

 

 

 

The second bit opens the file up and displays the data from the file, line by line (each line displaying the rank, level, exp).

 

 

 

 

 

 

 

Heres what it looks like.

 

 

 

Array ( [0] => 98045 [1] => 1501 [2] => 17917082 ) 



Array ( [0] => 123293 [1] => 81 [2] => 2315276 ) 



Array ( [0] => 77635 [1] => 81 [2] => 2279543 ) 



Array ( [0] => 178107 [1] => 81 [2] => 2295735 ) 



Array ( [0] => 129201 [1] => 82 [2] => 2616342 ) 



Array ( [0] => 230492 [1] => 71 [2] => 849526 ) 



Array ( [0] => 135995 [1] => 58 [2] => 230835 ) 



Array ( [0] => 159099 [1] => 76 [2] => 1416204 ) 



Array ( [0] => 360416 [1] => 68 [2] => 628060 ) 



Array ( [0] => 652882 [1] => 66 [2] => 544781 ) 



Array ( [0] => 245531 [1] => 73 [2] => 1000771 ) 



Array ( [0] => 306423 [1] => 68 [2] => 648135 ) 



Array ( [0] => 307999 [1] => 58 [2] => 227307 ) 



Array ( [0] => 145098 [1] => 62 [2] => 346085 ) 



Array ( [0] => 221280 [1] => 59 [2] => 248211 ) 



Array ( [0] => 376847 [1] => 65 [2] => 479076 ) 



Array ( [0] => 66910 [1] => 58 [2] => 243544 ) 



Array ( [0] => 139851 [1] => 58 [2] => 224598 ) 



Array ( [0] => 171487 [1] => 55 [2] => 175905 ) 



Array ( [0] => 89681 [1] => 62 [2] => 344578 ) 



Array ( [0] => 79739 [1] => 51 [2] => 112201 ) 



Array ( [0] => 41000 [1] => 64 [2] => 412694 ) 



Array ( [0] => 75968 [1] => 55 [2] => 177728 ) 



Array ( [0] => 115690 [1] => 49 [2] => 99947 ) 



 

 

 

You could add this to a mySQL database (instead of displaying inserting into the fields).

 

 

 

 

 

 

 

Note this above code is fairly dirty and would need editing. But it just shows you how it could be done and not how it should be done.

 

 

 

 

 

 

 

PS. I'll work on this code a little more later.

[hide=Drops]

  • Dragon Axe x11
    Berserker Ring x9
    Warrior Ring x8
    Seercull
    Dragon Med
    Dragon Boots x4 - all less then 30 kc
    Godsword Shard (bandos)
    Granite Maul x 3

Solo only - doesn't include barrows[/hide][hide=Stats]

joe_da_studd.png[/hide]

  • Author

bump

 

If anyone else knows how to help me out here with php or mySQL please post :)

 

I failed horribly when trying to use the mySQL code I've been given and until I see him online I won't be able to make progress that way :(

 

so if you know anything that might help me to get this to work please tell :)

 

 

 

Also if you know of anyone who makes some of these stats signatures like the ones everyone has here on tipit, please let me know if and how I could contact them, they would know what to do :)

 

 

 

...Silver

I've PMed you one solution. :D

FormerTip.It mapper | hello?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.