1 package org.cacert.gigi.util;
4 import java.io.PrintWriter;
6 public class HighFinancialValueFetcherAlexa extends HighFinancialValueFetcher {
8 public HighFinancialValueFetcherAlexa(File f, int max) {
9 super(f, max, "https://s3.amazonaws.com/alexa-static/top-1m.csv.zip");
13 public void handle(String line, PrintWriter fos) {
14 String[] parts = line.split(",");
15 // Assert that the value before the "," is an integer
16 Integer.parseInt(parts[0]);
19 System.out.println(parts[1]);