Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading Data using TIdHttp

Status
Not open for further replies.

Zoiked

Programmer
May 6, 2007
2
US
I am using the Indy TIdHTTP Component to read data from the website and then displaying the scores in Textbox's.

So far I have this code which gets the site and then posts the source into a Rich Text Box.
Code:
procedure TForm1.Button1Click(Sender: TObject);
var
  LContent, URL : String;
begin
  URL := '[URL unfurl="true"]http://hiscore.runescape.com/hiscorepersonal.ws?user1=zezima';[/URL]
  LContent := idHttp.Get(URL);
  RichEdit1.Text := LContent;

end;

How could I search through this code and strip out the info I need to display in Text Boxes?

Thanks.
 
What you are trying to do can be achieved by a technique called page-scraping. Click this google link to investigate further: [google]delphi page-scraping[/google]

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Sorry, I should have said that page-scraping is basically where you search for specific html tags and extract the data from them.

The following are a couple of other Tek-Tips threads on the subject (from other related forums):
- thread253-1323791
- thread253-1357110

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top