Current location - Music Encyclopedia - Today in History - Sohu Stock Historical Data Interface
Sohu Stock Historical Data Interface
Public? Class? StockConnection? {

Public? Static electricity Invalid? main(String[]? args)? {

Website? ur? =? null

Try it? {

//Sohu Quotes History Interface

//ur? =? New? URL(");

//Sina Quotes History Interface

ur? =? New? Website ("(10000)&; Symbol = sh600000 & end _ date = 20150809 & begin _ date = 20000 10 1。 type = plain ");

HttpURLConnection? uc? =? (HttpURLConnection)? ur . open connection();

BufferedReader? Readers? =? New? BufferedReader (new? InputStreamReader(ur . openstream(),“GBK”);

String? Line;

And ((ok? =? reader.readLine())? ! =? null){

system . out . println(line);

}

}? Catch? (exception? e)? {

//? Todo? Automatically generated? Catch? block

e . printstacktrace();

}

}

}