public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		System.out.print("Enter the URL address of the site you wish to parse: ");
		String url = scan.nextLine();
		System.out.print("Please enter 1 for single-threaded or 2 for multi-threaded operation: ");
		int mode = scan.nextInt();
		System.out.print("Enter the max number of webpages you would like to parse: ");
		int maxPagesToParse = scan.nextInt();
		System.out.print("Please enter how many keywords (max 10): ");
		int numKeywords = scan.nextInt();
		System.out.println("Please enter your desired keywords:");
		HashSet<String> keywords = new HashSet<String>();
		for (int i = 0; i < Math.min(10, numKeywords); i++) {
			keywords.add(scan.next());
		}
		scan.close();
		System.out.println("Webcrawler running...");
		
		long startTime = System.currentTimeMillis();
		
		if (mode == 1) {
			single(maxPagesToParse, url, keywords);
		} else {
			multi(maxPagesToParse, url, keywords);
		}

		long endTime = System.currentTimeMillis();
		long duration = endTime - startTime;
		
		System.out.println("Total execution time: " + duration + " ms");
	}