| | |
Delphi - how to get data from the web
Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2008
Posts: 1
Reputation:
Solved Threads: 0
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 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
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)
http://hiscore.runescape.com/index_lite.ws?player=emmann0
thanks for reading this
•
•
Join Date: Dec 2007
Posts: 12
Reputation:
Solved Threads: 0
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
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
![]() |
Similar Threads
- Programming FAQ - Updated 1/March/2005 (Computer Science)
- trojans...now nothing opens and I get a paint can't open error (Viruses, Spyware and other Nasties)
- Need Help With Packet Length (Pascal and Delphi)
- Why are there so many languages? (Computer Science)
- Microsoft .NET FAQ (ASP.NET)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Inno Setup Questions
- Next Thread: Exsist table in mdb file
Views: 1038 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Pascal and Delphi






