@Override
	public void run(){
		@SuppressWarnings("resource")
		final Scanner input = new Scanner(System.in);
		
		System.out.println("Please enter a site to show the HTML tree, or type in \"exit\" to exit!");
		while(true){
			System.out.print(">> ");
			String site = input.next();
			if (site.equalsIgnoreCase("exit")) break;
			try{
				visit(site);
			}catch (IOException e){
				sleep(50);
				e.printStackTrace();
				sleep(50);
			}catch(MalformedHtmlException e){
				sleep(50);
				e.printStackTrace();
				sleep(50);
			}
			System.out.println("==================================================================================");
		}
	}