Artur_Indio
Artur_Indio

Reputation: 766

Delphi: How to get data from this website?

I'm trying to get data from a website:

http://site2.aesa.pb.gov.br/aesa/monitoramentoPluviometria.do?metodo=listarMesesChuvasMensais (translated via Google Translate)

In Delphi I know working with XML based Webservices (SOAP, WSDL), but this site does not provide such kind of services.

But I do not have knowledge in languages ​​like PHP and HTML, not even web languages ​​in general.

My question is, is there any way to get data from that site with the knowledge I do (not) have? Is there a tool to do this in Delphi? What are the common first steps to study the ability to do this?

Input January and 2014:

http://site2.aesa.pb.gov.br/aesa/monitoramentoPluviometria.do?metodo=listarMesesChuvasMensais

Output:

a generic method url

http://site2.aesa.pb.gov.br/aesa/monitoramentoPluviometria.do

Upvotes: 0

Views: 2335

Answers (1)

mjn
mjn

Reputation: 36664

First you need to use a HTTP client such as Internet Direct (Indy) or Synapse to get the web page as text. Then you can either a HTML parser library or plain string routines to extract the table data.

How to perform HTTP requests is shown in many articles and Stackoverflow questions.

Upvotes: 1

Related Questions