Browse Source

slightly modification from Daniel's script

dmr1725 4 years ago
parent
commit
a2d581ca8f

+ 1
- 1
Miupi Parser/Admi.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Admi_Grad.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Arqui.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Arqui_Grad.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Asuntos_Aca.json
File diff suppressed because it is too large
View File


+ 0
- 1
Miupi Parser/Ciencia_Tech_Info_Grad.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Ciencias_Militares.json View File

@@ -1 +1 @@
1
-[{"Curso": "CIMI3011", "Seccion": "001", "Profesor": "MCGEE, SHANNON ", "Nombre": "CURSO BASIC C. MILIT I", "Dias": ["LW"], "Horario": ["01:00PM-01:50PM"], "Salones": ["DM-001"], "Info_Extra": ""}, {"Curso": "CIMI3021", "Seccion": "001", "Profesor": "MEYERS, JOSHUA ", "Nombre": "CURS BASIC C.MILIT III", "Dias": ["LW"], "Horario": ["10:30AM-11:20AM"], "Salones": ["DM-002"], "Info_Extra": ""}, {"Curso": "CIMI4011", "Seccion": "001", "Profesor": "MEYERS, JOSHUA ", "Nombre": "COM Y PSIC EN LID MILITAR", "Dias": ["LW"], "Horario": ["08:00PM-09:50PM"], "Salones": ["DM-001"], "Info_Extra": ""}, {"Curso": "CIMI4021", "Seccion": "001", "Profesor": "ROJAS, ORLANDO ", "Nombre": "LID Y ADM OPERACIONES MIL", "Dias": ["MJ"], "Horario": ["06:30AM-08:50AM"], "Salones": [], "Info_Extra": ""}, {"Curso": "ESAE3001", "Seccion": "001", "Profesor": "TORRES, C. ", "Nombre": "LA FUERZA AEREA DE HOY", "Dias": ["L", "V"], "Horario": ["09:00AM-09:50AM", "09:00AM-10:50AM"], "Salones": ["DM-001", "DM-001"], "Info_Extra": ""}, {"Curso": "ESAE3001", "Seccion": "002", "Profesor": "TORRES, C. ", "Nombre": "LA FUERZA AEREA DE HOY", "Dias": ["D"], "Horario": ["TBA"], "Salones": [], "Info_Extra": ""}, {"Curso": "ESAE3011", "Seccion": "002", "Profesor": "NIEVES,RICARDO ", "Nombre": "DESARR DEL PODERIO AEREO", "Dias": ["W", "V"], "Horario": ["09:00AM-09:50AM", "09:00AM-10:50AM"], "Salones": [], "Info_Extra": ""}, {"Curso": "ESAE4001", "Seccion": "001", "Profesor": "MENDOZA, JOEL ", "Nombre": "GER,LID EN LA FUERZA AERE", "Dias": ["LW", "V"], "Horario": ["10:00AM-11:20AM", "09:00AM-10:50AM"], "Salones": [], "Info_Extra": ""}, {"Curso": "ESAE4011", "Seccion": "001", "Profesor": "NIEVES, RICARDO", "Nombre": "SEG NAC SOC AMER CONTEMP", "Dias": ["LW", "V"], "Horario": ["10:00AM-11:20AM", "09:00AM-10:50AM"], "Salones": [], "Info_Extra": ""}]
1
+[{"Curso": "CIMI3012", "Seccion": "001", "Profesor": "MCGEE, SHARON ", "Creditos": "2", "Nombre": "CURSO BASIC C.MILIT II", "Dias": "LW", "Horario": "09:00AM-09:50AM", "Salones": "DM-001"}, {"Curso": "CIMI3022", "Seccion": "001", "Profesor": "MEYERS, JOSHUA ", "Creditos": "2", "Nombre": "CURS BASIC C.MILIT IV", "Dias": "LW", "Horario": "10:00AM-10:50AM", "Salones": "DM-002"}, {"Curso": "CIMI4012", "Seccion": "001", "Profesor": "MEYERS, JOSHUA ", "Creditos": "4", "Nombre": "CURSO AVZ C.MILIT II", "Dias": "LW", "Horario": "08:00PM-09:50PM", "Salones": "DM-001"}, {"Curso": "CIMI4022", "Seccion": "001", "Profesor": "ROJAS, ORLANDO ", "Creditos": "4", "Nombre": "2DO ANO C.MILIT AVZ IV", "Dias": "TBA", "Horario": "TBA", "Salones": "TBA"}, {"Curso": "ESAE3002", "Seccion": "001", "Profesor": "OTERO, ALVIN ", "Creditos": "2", "Nombre": "LA FUERZA AEREA DE HOY", "Dias": "L,V", "Horario": "08:40AM-09:30AM,09:00AM-10:50AM", "Salones": "DM-001,DM-001"}, {"Curso": "ESAE3002", "Seccion": "002", "Profesor": "OTERO, ALVIN ", "Creditos": "2", "Nombre": "LA FUERZA AEREA DE HOY", "Dias": "W,V", "Horario": "02:00PM-02:50PM,09:00AM-10:50AM", "Salones": "DM-001"}, {"Curso": "ESAE3002", "Seccion": "003", "Profesor": "OTERO, ALVIN ", "Creditos": "2", "Nombre": "LA FUERZA AEREA DE HOY", "Dias": "D,V", "Horario": "09:00AM-10:00AM", "Salones": "TBA"}, {"Curso": "ESAE3012", "Seccion": "001", "Profesor": "MC PHERSON, S. ", "Creditos": "2", "Nombre": "DESARR DEL PODERIO AEREO", "Dias": "L,V", "Horario": "02:00PM-02:50PM,09:00AM-10:50AM", "Salones": "DM-001,DM-001"}, {"Curso": "ESAE3012", "Seccion": "002", "Profesor": "MC PHERSON, S. ", "Creditos": "2", "Nombre": "DESARR DEL PODERIO AEREO", "Dias": "W,V", "Horario": "08:40AM-09:30AM,09:00AM-10:50AM", "Salones": "TBA"}, {"Curso": "ESAE3012", "Seccion": "003", "Profesor": "MC PHERSON, S. ", "Creditos": "2", "Nombre": "DESARR DEL PODERIO AEREO", "Dias": "D", "Horario": "TBA", "Salones": "TBA"}, {"Curso": "ESAE4002", "Seccion": "001", "Profesor": "MENDOZA, JOEL ", "Creditos": "4", "Nombre": "GER,LID EN LA FUERZA AERE", "Dias": "LW,V", "Horario": "10:10AM-11:30AM,09:00AM-10:50AM", "Salones": "TBA"}, {"Curso": "ESAE4002", "Seccion": "002", "Profesor": "MENDOZA, JOEL ", "Creditos": "4", "Nombre": "GER,LID EN LA FUERZA AERE", "Dias": "D,V", "Horario": "09:00AM-10:50AM", "Salones": "TBA"}, {"Curso": "ESAE4012", "Seccion": "001", "Profesor": "MC PHERSON, S. ", "Creditos": "4", "Nombre": "SEG NAC SOC AMER CONTEMP", "Dias": "LW,V", "Horario": "10:10AM-11:30AM,09:00AM-11:00AM", "Salones": "TBA"}, {"Curso": "ESAE4012", "Seccion": "002", "Profesor": "MC PHERSON, S. ", "Creditos": "4", "Nombre": "SEG NAC SOC AMER CONTEMP", "Dias": "V,D", "Horario": "09:00AM-10:50AM", "Salones": "TBA"}]

+ 1
- 0
Miupi Parser/Ciencias_Naturales.json
File diff suppressed because it is too large
View File


+ 1
- 0
Miupi Parser/Ciencias_Naturales_Grad.json
File diff suppressed because it is too large
View File


+ 1
- 0
Miupi Parser/Ciencias_Sociales.json
File diff suppressed because it is too large
View File


+ 1
- 0
Miupi Parser/Ciencias_Sociales_Grad.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Comunicaciones.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Comunicaciones_Grad.json View File

@@ -1 +1 @@
1
-[{"Curso": "COPU6500", "Seccion": "2U1", "Profesor": "ROCHE,MARIO ", "Nombre": "TEORIAS DE LA COMUNICACIO", "Dias": ["M"], "Horario": ["06:00PM-08:50PM"], "Salones": ["PLAZU-4112"], "Info_Extra": "* Curso no se ofrecer\u00e1 en el 2DO SEM *"}, {"Curso": "COPU6517", "Seccion": "2U1", "Profesor": "RAMIREZ,RUBEN ", "Nombre": "CULT Y ESTRUC MEDIATICAS", "Dias": ["W"], "Horario": ["06:00PM-08:50PM"], "Salones": ["PLAZU-4112"], "Info_Extra": "* Curso no se ofrecer\u00e1 en el 2DO SEM *"}, {"Curso": "COPU6667", "Seccion": "2U1", "Profesor": "COLON,ELISEO ", "Nombre": "PERSP Y METOD INV EN COM", "Dias": ["L"], "Horario": ["06:00PM-08:50PM"], "Salones": ["PLAZU-4088"], "Info_Extra": "* Curso no se ofrecer\u00e1 en el 2DO SEM *"}, {"Curso": "COPU6698", "Seccion": "0U1", "Profesor": "COLON,ELISEO ", "Nombre": "CONT EXP INVEST DIV MODS", "Dias": ["J"], "Horario": ["06:00PM-08:50PM"], "Salones": [], "Info_Extra": ""}, {"Curso": "COPU6707", "Seccion": "001", "Profesor": "COLON,ELISEO ", "Nombre": "SEMINAR COMUNICACION III", "Dias": ["M"], "Horario": ["06:00PM-08:50PM"], "Salones": ["PLAZU-4110"], "Info_Extra": ""}, {"Curso": "COPU6707", "Seccion": "002", "Profesor": "ALVARADO, G. ", "Nombre": "SEMINAR COMUNICACION III", "Dias": ["L"], "Horario": ["06:00PM-08:50PM"], "Salones": ["PLAZU-4110"], "Info_Extra": ""}, {"Curso": "COPU6726", "Seccion": "2U1", "Profesor": "ROCHE,MARIO ", "Nombre": "SEMINARION EN PERIOD II", "Dias": ["J"], "Horario": ["06:00PM-08:50PM"], "Salones": ["PLAZU-4110"], "Info_Extra": "* Curso no se ofrecer\u00e1 en el 2DO SEM *"}]
1
+[{"Curso": "COPU6500", "Seccion": "2U1", "Profesor": "TBA", "Creditos": "3", "Nombre": "TEORIAS DE LA COMUNICACIO", "Dias": "L", "Horario": "06:00PM-08:50PM", "Salones": "TBA"}, {"Curso": "COPU6578", "Seccion": "2U1", "Profesor": "TORRES, M. ", "Creditos": "3", "Nombre": "TEORIA PERIODIST Y ETICA", "Dias": "J", "Horario": "06:00PM-08:50PM", "Salones": "TBA"}, {"Curso": "COPU6661", "Seccion": "2U1", "Profesor": "TBA", "Creditos": "3", "Nombre": "ESTUDIOS INDEPENDIENTES", "Dias": "D", "Horario": "TBA", "Salones": "TBA"}, {"Curso": "COPU6697", "Seccion": "001", "Profesor": "COLON, E. ", "Creditos": "3", "Nombre": "EXPER INVEST DIVER MODALI", "Dias": "D", "Horario": "TBA", "Salones": "TBA"}, {"Curso": "COPU6697", "Seccion": "002", "Profesor": "RAMIREZ, R. ", "Creditos": "3", "Nombre": "EXPER INVEST DIVER MODALI", "Dias": "D", "Horario": "TBA", "Salones": "TBA"}, {"Curso": "COPU6697", "Seccion": "003", "Profesor": "SANTIAGO, J. ", "Creditos": "3", "Nombre": "EXPER INVEST DIVER MODALI", "Dias": "D", "Horario": "TBA", "Salones": "TBA"}, {"Curso": "COPU6705", "Seccion": "2U1", "Profesor": "ALBERT, R. ", "Creditos": "3", "Nombre": "SEMINARIO COMUNICACION I", "Dias": "M", "Horario": "06:00PM-08:50PM", "Salones": "TBA"}, {"Curso": "COPU6706", "Seccion": "2U1", "Profesor": "COLON E ", "Creditos": "3", "Nombre": "FASSBINDER-ALMODV:MELOD Q", "Dias": "W", "Horario": "06:00PM-08:50PM", "Salones": "TBA"}, {"Curso": "COPU6725", "Seccion": "2U1", "Profesor": "GONZALEZ, O. ", "Creditos": "3", "Nombre": "SEMINARIO EN PERIODISM I", "Dias": "L", "Horario": "06:00PM-08:50PM", "Salones": "TBA"}, {"Curso": "COPU6726", "Seccion": "001", "Profesor": "ROCHE, M. ", "Creditos": "3", "Nombre": "SEMINARION EN PERIOD II", "Dias": "J", "Horario": "06:00PM-08:50PM", "Salones": "PLAZU-4110"}]

+ 0
- 1
Miupi Parser/Derecho.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Educacion.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Educacion_Continua.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Educacion_Grad.json
File diff suppressed because it is too large
View File


+ 1
- 0
Miupi Parser/Escuela_Derecho.json
File diff suppressed because it is too large
View File


+ 1
- 0
Miupi Parser/Escuela_Grad_Ciencia_Tech_Info.json View File

@@ -0,0 +1 @@
1
+[{"Curso": "CINF6208", "Seccion": "LU1", "Profesor": "FLORES CARABALL", "Creditos": "3", "Nombre": "SIST COMPUTARIZADO DOC", "Dias": "J", "Horario": "05:30PM-08:20PM", "Salones": "EGB-313"}, {"Curso": "CINF6418", "Seccion": "LU1", "Profesor": "S\u00c1NCHEZ LUGO, ", "Creditos": "3", "Nombre": "SERV INFO TECN ED SUP PR", "Dias": "M", "Horario": "05:30PM-08:20PM", "Salones": "EGB-315"}, {"Curso": "CINF6419", "Seccion": "LU1", "Profesor": "VELEZ NATAL B ", "Creditos": "2", "Nombre": "LOS ARCH ORG DESA LEGI", "Dias": "W", "Horario": "05:30PM-08:20PM", "Salones": "EGB-313"}, {"Curso": "CINF6426", "Seccion": "LU1", "Profesor": "PAGAN SANTANA,L", "Creditos": "3", "Nombre": "ADMINISTRACION BIBLIOTEC", "Dias": "J", "Horario": "05:30PM-08:20PM", "Salones": "EGB-310"}, {"Curso": "CINF6507", "Seccion": "LU1", "Profesor": "FLORES RAMOS, J", "Creditos": "3", "Nombre": "CONSERV PRES RESTAUR DOC", "Dias": "M", "Horario": "05:30PM-08:20PM", "Salones": "EGB-310"}, {"Curso": "CINF6705", "Seccion": "LU1", "Profesor": "V\u00c9LEZ NATAL, B", "Creditos": "3", "Nombre": "INFO CONOC Y SOCIEDAD", "Dias": "L", "Horario": "05:30PM-08:20PM", "Salones": "EGB-309"}, {"Curso": "CINF6706", "Seccion": "LU1", "Profesor": "SANCHEZ LUGO, J", "Creditos": "3", "Nombre": "METOD INV EN CINF", "Dias": "M", "Horario": "05:30PM-08:20PM", "Salones": "EGB-315"}, {"Curso": "CINF6707", "Seccion": "LU1", "Profesor": "FLORES CARABALL", "Creditos": "3", "Nombre": "TECNOL INFO CONOCIMIENTO", "Dias": "W", "Horario": "05:30PM-08:20PM", "Salones": "EGB-313"}, {"Curso": "CINF6708", "Seccion": "LU1", "Profesor": "SU\u00c1REZ BALSEIR", "Creditos": "3", "Nombre": "FUND ORGANIZ INFORMA CONO", "Dias": "J", "Horario": "05:30PM-08:20PM", "Salones": "EGB-315"}, {"Curso": "CINF6800", "Seccion": "LU1", "Profesor": "VELEZ NATAL, B ", "Creditos": "1", "Nombre": "EXP CLINICAS SERV INFO", "Dias": "D", "Horario": "TBA", "Salones": "TBA"}, {"Curso": "CINF6806", "Seccion": "LU1", "Profesor": "VIGO CEPEDA, L.", "Creditos": "3", "Nombre": "ORG Y RECUP INFO Y CONOCI", "Dias": "J", "Horario": "05:30PM-08:20PM", "Salones": "EGB-312"}, {"Curso": "CINF6807", "Seccion": "LU1", "Profesor": "SUAREZ BALSEIRO", "Creditos": "3", "Nombre": "PRODUCTS Y SERVICI DE REF", "Dias": "M", "Horario": "05:30PM-08:20PM", "Salones": "EGB-309"}, {"Curso": "CINF6810", "Seccion": "LU1", "Profesor": "VIGO CEPEDA, L ", "Creditos": "3", "Nombre": "ORG Y RECUP INFO Y CONOCI", "Dias": "M", "Horario": "05:00PM-07:50PM", "Salones": "EGB-312"}, {"Curso": "CINF6815", "Seccion": "LU1", "Profesor": "DOMINGUEZ FLORE", "Creditos": "3", "Nombre": "COMP INFORMAC Y TECNOLOGI", "Dias": "W", "Horario": "05:30PM-08:20PM", "Salones": "EGB-310"}, {"Curso": "CINF6906", "Seccion": "LU1", "Profesor": "DOMINGUEZ FLORE", "Creditos": "3", "Nombre": "TECNICAS Y TECNOLO PARA G", "Dias": "L", "Horario": "05:30PM-08:20PM", "Salones": "EGB-313"}, {"Curso": "CINF6998", "Seccion": "A01", "Profesor": "VIGO CEPEDA,J ", "Creditos": "3", "Nombre": "SEM APL CONC (CAPSTONE)", "Dias": "D", "Horario": "TBA", "Salones": "TBA"}, {"Curso": "CINF6998", "Seccion": "A02", "Profesor": "VELEZ NATAL, B ", "Creditos": "3", "Nombre": "SEM APL CONC (CAPSTONE)", "Dias": "D", "Horario": "TBA", "Salones": "TBA"}, {"Curso": "CINF6998", "Seccion": "A03", "Profesor": "SANCHEZ LUGO, J", "Creditos": "3", "Nombre": "SEM APL CONC (CAPSTONE)", "Dias": "D", "Horario": "TBA", "Salones": "TBA"}, {"Curso": "CINF6998", "Seccion": "A04", "Profesor": "FLORES CARABALL", "Creditos": "3", "Nombre": "SEM APL CONC (CAPSTONE)", "Dias": "D", "Horario": "TBA", "Salones": "TBA"}, {"Curso": "CINF6998", "Seccion": "A05", "Profesor": "SUAREZ BALSEIRO", "Creditos": "3", "Nombre": "SEM APL CONC (CAPSTONE)", "Dias": "D", "Horario": "TBA", "Salones": "TBA"}, {"Curso": "CINF6998", "Seccion": "A06", "Profesor": "DOMINGUEZ FLORE", "Creditos": "3", "Nombre": "SEM APL CONC (CAPSTONE)", "Dias": "D", "Horario": "TBA", "Salones": "TBA"}]

+ 1
- 0
Miupi Parser/Estudios_Generales.json
File diff suppressed because it is too large
View File


+ 0
- 1
Miupi Parser/Generales.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Humanidades.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Humanidades_Grad.json
File diff suppressed because it is too large
View File


+ 0
- 6886
Miupi Parser/Naturales.json
File diff suppressed because it is too large
View File


+ 0
- 1
Miupi Parser/Naturales_Grad.json
File diff suppressed because it is too large
View File


+ 1
- 1
Miupi Parser/Planificacion.json
File diff suppressed because it is too large
View File


+ 0
- 1
Miupi Parser/Sociales.json
File diff suppressed because it is too large
View File


+ 0
- 1
Miupi Parser/Sociales_Grad.json
File diff suppressed because it is too large
View File


+ 45
- 18
Miupi Parser/parse.py View File

@@ -30,7 +30,6 @@ def final_parse(name):
30 30
             pass
31 31
         else:
32 32
             course = {}
33
-
34 33
             course["Curso"] = item["Curso"][0:8]
35 34
             course["Seccion"] = item["Curso"][9:12]
36 35
 
@@ -39,26 +38,54 @@ def final_parse(name):
39 38
                 course["Profesor"] = profesor
40 39
             else:
41 40
                 course["Profesor"] = "TBA"
42
-
41
+            
42
+            course["Creditos"] = info[1][-1]
43 43
             course["Nombre"] = info[0][0:-1]
44
-            course["Dias"] = item["Dias"].split(" ")
45 44
 
46
-            horario = []
45
+            # bregando con dias
46
+            days = item["Dias"].split(" ")
47
+            for i in range(len(days)):
48
+                if i == 0:
49
+                    course["Dias"] = days[i]
50
+                else:
51
+                    course["Dias"] = course["Dias"] + ',' + days[i]
52
+
53
+            # si la clase es lab, conferencia o taller
54
+            if course["Nombre"] == 'CONFERENCIA' or course["Nombre"] == 'LABORATORIO' or course['Nombre'] == 'TALLER':
55
+                course["Curso"] += '_LAB'
56
+
57
+
58
+            
59
+            # bregando con el horario
47 60
             if(item["Hora"] != None):
48
-                for i in range(len(course["Dias"])):
49
-                    horario.append(item["Hora"][15*i:15*(i+1)])
61
+                if len(item["Hora"]) == 15:
62
+                    course["Horario"] = item["Hora"]
63
+                else:
64
+                    course["Horario"] = item["Hora"][0:15] + ',' + item["Hora"][15:30]
50 65
             else:
51
-                horario.append("TBA")
52
-            course["Horario"] = horario
66
+                course["Horario"] = "TBA"
67
+            
53 68
 
69
+            # bregando con salones
54 70
             salones_raw = item["Salon"].split("Edificio: ")
55 71
             salones = []
56 72
             for i in salones_raw:
57 73
                 if(i != "-" and i != "- " and i != ""):
58 74
                     salones.append(i[:-1])
59
-            course["Salones"] = salones
75
+            # una vez los tenga en un array, los voy a unir con una comma para poder insertarlos a la base de datos como datatype string
76
+            if len(salones) == 0:
77
+                course["Salones"] = "TBA"
78
+            else:
79
+                for i in range(len(salones)):
80
+                    if i == 0:
81
+                        course["Salones"] = salones[i]
82
+                    else:
83
+                        course["Salones"] = course["Salones"] + ',' + salones[i]
84
+            
85
+            print(course["Salones"])
86
+                
60 87
 
61
-            course["Info_Extra"] = item["Curso"][13:-1]
88
+            
62 89
 
63 90
             newdata.append(course)
64 91
 
@@ -72,19 +99,19 @@ if __name__ == "__main__":
72 99
                     "Admi_Grad": "https://miupi.uprrp.edu/horarios/RBA120_AE2.HTML",
73 100
                     "Arqui": "https://miupi.uprrp.edu/horarios/RBA120_AQ.HTML",
74 101
                     "Arqui_Grad": "https://miupi.uprrp.edu/horarios/RBA120_AQ2.HTML",
75
-                    "Ciencia_Tech_Info_Grad": "https://miupi.uprrp.edu/horarios/RBA120_CB.HTML",
102
+                    "Escuela_Grad_Ciencia_Tech_Info": "https://miupi.uprrp.edu/horarios/RBA120_CB.HTML",
76 103
                     "Ciencias_Militares": "https://miupi.uprrp.edu/horarios/RBA120_CM.HTML",
77
-                    "Naturales": "https://miupi.uprrp.edu/horarios/RBA120_CN.HTML",
78
-                    "Naturales_Grad": "https://miupi.uprrp.edu/horarios/RBA120_CN2.HTML",
104
+                    "Ciencias_Naturales": "https://miupi.uprrp.edu/horarios/RBA120_CN.HTML",
105
+                    "Ciencias_Naturales_Grad": "https://miupi.uprrp.edu/horarios/RBA120_CN2.HTML",
79 106
                     "Comunicaciones": "https://miupi.uprrp.edu/horarios/RBA120_CP.HTML",
80 107
                     "Comunicaciones_Grad": "https://miupi.uprrp.edu/horarios/RBA120_CP2.HTML",
81
-                    "Sociales": "https://miupi.uprrp.edu/horarios/RBA120_CS.HTML",
82
-                    "Sociales_Grad": "https://miupi.uprrp.edu/horarios/RBA120_CS2.HTML	",
83
-                    "Derecho": "https://miupi.uprrp.edu/horarios/RBA120_DE.HTML",
108
+                    "Ciencias_Sociales": "https://miupi.uprrp.edu/horarios/RBA120_CS.HTML",
109
+                    "Ciencias_Sociales_Grad": "https://miupi.uprrp.edu/horarios/RBA120_CS2.HTML	",
110
+                    "Escuela_Derecho": "https://miupi.uprrp.edu/horarios/RBA120_DE.HTML",
84 111
                     "Educacion_Continua": "https://miupi.uprrp.edu/horarios/RBA120_EC.HTML",
85 112
                     "Educacion": "https://miupi.uprrp.edu/horarios/RBA120_ED.HTML",
86 113
                     "Educacion_Grad": "https://miupi.uprrp.edu/horarios/RBA120_ED2.HTML",
87
-                    "Generales": "https://miupi.uprrp.edu/horarios/RBA120_EG.HTML",
114
+                    "Estudios_Generales": "https://miupi.uprrp.edu/horarios/RBA120_EG.HTML",
88 115
                     "Humanidades": "https://miupi.uprrp.edu/horarios/RBA120_HU.HTML",
89 116
                     "Humanidades_Grad": "https://miupi.uprrp.edu/horarios/RBA120_HU2.HTML",
90 117
                     "Planificacion": "https://miupi.uprrp.edu/horarios/RBA120_PL.HTML"}
@@ -92,4 +119,4 @@ if __name__ == "__main__":
92 119
     for key in faculty_urls:
93 120
         initial_parse(key, faculty_urls[key])
94 121
         final_parse(key)
95
-        remove(f"{key}_temp.json")
122
+        remove(f"{key}_temp.json")

+ 0
- 16
organizar/organizar.py View File

@@ -37,19 +37,3 @@ files3 = orderFiles3(files1, files2, files3)
37 37
 
38 38
 
39 39
 
40
-
41
-# for file in files3:
42
-#     check = file['file'].split('.')
43
-#     path = "C:/Users/diego/Documents/companion_app/segundo_sem" if check[0][-1] == '2' else "C:/Users/diego/Documents/companion_app/primer_sem"
44
-#     with open(path + '/' + file['file']) as f:
45
-#         data = json.load(f)
46
-#         fac_id = file['num']
47
-#         for key in data:
48
-#             if key != 'Horario ':
49
-#                 code = key
50
-#                 name = data[key][0]
51
-#                 creds = data[key][1]
52
-#                 print(code, name, creds, fac_id)
53
-               
54
-            
55
-