Data acquisition based on Java (2)
In the previous article Java based data collection (I): http://www.cnblogs.com/lichenwei/p/3904715.html
How to read the web page source code and dynamically grab the web page data we need through group regular is mentioned
Now let's write down the storage of data. The idea is very simple. We just need to store the data in a temporary variable and insert it into the database every time we read a data.
Data collection and warehousing based on Java (III): http://www.cnblogs.com/lichenwei/p/3907007.html
Data collection and warehousing based on Java (final part): http://www.cnblogs.com/lichenwei/p/3910492.html
Let's create a table first:
DoMysqL. Java (database connection class and provides methods to insert data)
GetData. Java (filter data class)
CurlMain. Java main program class:
See the operation effect diagram below:
Next article: Java based data collection (III): http://www.cnblogs.com/lichenwei/p/3905370.html