Home > Back-end >  Page automatically to get the data, the database problems
Page automatically to get the data, the database problems

Time:09-24

The problem is that
Sina has free data, address is http://hq.sinajs.cn/list=sh600000, Shanghai pudong development bank current data, get down so

Var hq_str_sh600000="Shanghai pudong development bank, 17.800, 18.100, 17.630, 17.900, 17.400, 0.000, 0.000, 02.000, 11350479199027 0,0.000, 0,0.000, 0,0.000, 0,0.000, 0,0.000, 0,0.000, 0,0.000, 0,0.000, 0,0.000, 0,0.000, 2016-01-07, 11:30:00, 09";

I want to let the program automatically from this address to this string of data, and then to separate the data into different data segments, such as: Shanghai pudong development bank, a data section, 17.800 a, 18.100 a, a total of 32 data

And then once every 1 minute read, deposited in the database, code should be how to write?

Thank you, I am Delphi beginners, glad

CodePudding user response:

Then parsing string, first intercept 2 " between content, and then with , string segmentation,

CodePudding user response:

Using TidHttp access web data, string parsing,
This won't don't do Delphi

CodePudding user response:

This should be no difficulty, a string already get points
  • Related