-
Notifications
You must be signed in to change notification settings - Fork 57
/
main.py
33 lines (24 loc) · 714 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from utils.parser import ApacheLogsParser
class BigAnalizador:
def __init__(self, logs):
self.logs = logs
def bytes_transferidos(self):
# Completar
pass
def errores_servidor(self):
# Completar
pass
def solicitudes_exitosas(self):
# Completar
pass
def url_mas_solicitada(self):
# Completar
pass
if __name__ == '__main__':
parser = ApacheLogsParser("./utils/nasa_logs_week.txt")
logs = parser.get_apache_logs()
biganalizador = BigAnalizador(logs)
biganalizador.bytes_transferidos()
biganalizador.errores_servidor()
biganalizador.solicitudes_exitosas()
biganalizador.url_mas_solicitada()