接口 | 说明 |
---|---|
Query |
a interface for query
some class implements it should provide several methods to query
|
类 | 说明 |
---|---|
loadCNF |
this class is for load configuration information from the .cnf file
load path of resouce file(.csv, .sqlite) and loading model(csv, db, net)
|
loadCSV |
this class is for load information from the csv file
has an Connection type object from QueryDatabase,
using it to transfer information from .csv file to database, the database 's name
has smme ralation to csv file.
|
loadWebSource |
a class for load information from Internet
extends QueryDatabase,
it need WebScraping object to construct itself.
|
QueryDatabase |
a class for query information from database
it provide seven method to query, by date ,magnitude, region and their combination
|
ThreadForScrap |
this class extends the Thread class
to run two thread, one is itself for insert date to database,
other is static (named search)and implements Runnable class
for Scraping information from Internet and judge whether it can be inserted.
|
WebScraping |
this class aim at scraping the target web and get useful information
from it using regular expression.
|