private String extractHTML(String currentPageURL){
		//System.err.println("Extract HTML : " + currentPageURL);
		String theLine = "";
		try {
	        URL u = new URL(currentPageURL);
	        InputStream is = u.openStream();
	        InputStreamReader isr = new InputStreamReader(is);
	        BufferedReader br = new BufferedReader(isr);
	       
	        do{
	        	theLine += br.readLine();
	        } while(br.readLine() != null);
	      }
	      catch (MalformedURLException ex) {
	    	  System.err.println("Malformed URL: " + currentPageURL);
	        System.err.println(ex);
	        return "0";
	      } 
	      catch (IOException ex) {
	        System.err.println(ex); 
	        return "0";
	      }
		
		
		try {
			List<String> lines = Arrays.asList(theLine);
			Path file = Paths.get(currentPageURL.substring(currentPageURL.length()-1, currentPageURL.length())+".html");
			Files.write(file, lines, Charset.forName("UTF-8"));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	      
	      return theLine;
	}