Delphi - how to get data from the web

Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2008
Posts: 1
Reputation: emmann is an unknown quantity at this point 
Solved Threads: 0
emmann emmann is offline Offline
Newbie Poster

Delphi - how to get data from the web

 
0
  #1
Nov 21st, 2008
Hello,
I am trying to do something i could call gaming utility in delphi. I have one mayor problem. I don't know how to get the data i need.

You can find data i need on the link bellow, it is player stats table from game called runescape, you don't need to know it to help me just chect the link please
Pascal and Delphi Syntax (Toggle Plain Text)
  1. http://hiscore.runescape.com/index_lite.ws?player=emmann0
i don't want someone to do it all for me I'd like to get some clues or guide to make it myself

thanks for reading this
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Delphi - how to get data from the web

 
0
  #2
Nov 22nd, 2008
Take a look at the indy components, they are the easiest to use. (and there are plenty of examples)
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 12
Reputation: ebi1 is an unknown quantity at this point 
Solved Threads: 0
ebi1 ebi1 is offline Offline
Newbie Poster

Re: Delphi - how to get data from the web

 
0
  #3
Nov 30th, 2008
hi

you just need to download the page to your "CurrentDirectory" (or the program's directory), and do some text manipulations on it.

the way i see the text, you just need to look for the spaces(" ").
once you do that, you'll get lines of text build of 3 numbers separated by a comma.
then split the those lines.
i think it would be easiest to work with TStringList.

so here is an example of what i mean:
you have this text -
170632,1579,22742577 197483,82,2546825 177651,80,2087021 286001,83,2767264

then you make it:
170632,1579,22742577
197483,82,2546825
177651,80,2087021
286001,83,2767264

and then make it :
170632
1579
22742577

197483
82
2546825

177651
80
2087021

286001
83
2767264


after doing that, you will have full control of every piece of text you want

hope i helped, and sorry for my broken english
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Pascal and Delphi Forum


Views: 1038 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Pascal and Delphi
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC