public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(new FileInputStream("/home/hd/sgu/list.txt"));

        while (scanner.hasNext()) {
            String fileName = scanner.nextLine();

            if (fileName.endsWith("/_file") ||
                    fileName.equals("_file") ||
                    fileName.contains("?") ||
                    fileName.contains("&") ||
                    fileName.contains("question")) { // todo: delete
                continue;
            }

            fileName = "/home/hd/sgu" + fileName.substring(1);

            String page = downloadPage(fileName);
            if (page.length() < 100) {
                System.out.println(fileName + " len = " + page.length());
            } else {
                File file = new File(fileName);
                if (!file.renameTo(new File("/home/hd/sgu_best/" + (name++) + ".html"))) {
                    System.err.println("FAIL file: " + fileName);
                }
            }
        }
    }