예제 #1
0
 private static void write() throws Exception {
   SinaTopFetcher f = new SinaTopFetcher();
   List<TopDatum> list = SinaTopFetcher.parse(f.exec(f.getUrl()));
   for (TopDatum d : list) {
     DataStorage.get().write(d);
   }
 }
예제 #2
0
 public static void main(String... args) throws Exception {
   SinaTopFetcher f = new SinaTopFetcher();
   List<TopDatum> list = SinaTopFetcher.parse(f.exec(f.getUrl()));
   for (TopDatum d : list) {
     System.out.println(d);
   }
 }