def main(): args = parseArguments() ip = checkArgs(args) net = NetworkScanner(ip) w = Writer() while (True): clients = net.scan() devices = parseDevices(clients) csv_devices = w.getDevicesFromCSV() list_to_print = compareDevices(devices, csv_devices, net.getRouterIP()) printDevices(list_to_print) w.writeToCSV(devices) time.sleep(60 * args.time)
def main(): args = analisaArgs() ip = checaIPnosArgumentos(args) net = NetworkScanner(ip) w = Writer() while(True): clients = net.scan() devices = analisaDispositivos(clients) csv_devices = w.dispositivosDoCSV() list_to_print = comparaDispositivos( devices, csv_devices, net.getRouterIP()) mostraDispositivos(list_to_print) w.escreveCSV(devices) time.sleep(args.time)