public void parseCoach(Document doc, String url, Connection conexion) throws SQLException, ParseException{
        String[] coachInfo = new String[7];
        Integer id = Integer.valueOf(url.replaceAll("\\D+", ""));
        //get the nickname 
        coachInfo[2] = doc.select("title").text().split(",")[0];
       
        Element e = doc.select("table[class=tabledades]").get(0);
        Elements rows = e.select("tr");
        
        for(Element t: rows){
             System.out.println(t.select("td").text());
              switch(t.select("td.dades1").text()){
                  case "Nombre:":
                      coachInfo[0] = t.select("td.dades2").text();
                      break;
                  case "País:":
                      coachInfo[1] = t.select("td.dades2").text();
                      break;
                  case "Fecha de nacimiento:":
                      coachInfo[3] = t.select("td.dades2").text();
                      break;
                  case "Lugar de nacimiento:":
                      coachInfo[4] = t.select("td.dades2").text();
                      break;
                  case "Altura / peso:":
                      coachInfo[5] = t.select("td.dades2").text();
                      if(coachInfo[5]!=null){
                           coachInfo[6] = coachInfo[5].split("/")[1];
                           coachInfo[5] = coachInfo[5].split("/")[0];
                       }
                      break;
                  
              }
            
        }
        

        //insertar en la BBDD al entrenador
        saveCoach(conexion, coachInfo, id);
        
        //extrae la información del histórico 
       
        e = doc.select("table[class=taulabdf traject]").get(0);
        String[] historicInfo = new String[5];
        System.out.println(e.select("tr").size());
        rows = e.select("tr");
        for (int i = 1; i< rows.size()-2; i++){
            Elements data = rows.get(i).select("td");
            historicInfo[0] = data.get(1).text();//equipo
            historicInfo[1] = data.get(3).text();//temporada
            historicInfo[2] = data.get(4).text();//division
            historicInfo[3] = data.get(5).text();//edad
            historicInfo[4] = data.get(6).text();//partidos
            saveCoachHistoric(conexion, historicInfo, id);
        }
        //insertar historico en la bbdd
    }