#!/usr/bin/python # -*- coding: utf8 -*- # prueba para ejecutar wikisquilter sobre un log from datetime import date import test_helper from helpers.logging_helper import init_logger import run_wikisquilter init_logger('run_wsq') # vamos a procesar WikiSquilter sobre 3 logs.. day = date.today().replace(year=2013, month=01, day=01) run_wikisquilter.run(day) day = date.today().replace(year=2013, month=01, day=02) run_wikisquilter.run(day) day = date.today().replace(year=2013, month=01, day=05) run_wikisquilter.run(day)
#!/usr/bin/python # -*- coding: utf8 -*- # prueba para popular la BD squidlogs a partir de logs de 10 días # anteriores a la fecha actual import test_helper from run_wikisquilter import run from datetime import date, timedelta date = date.today() date -= timedelta(10) for i in range(0, 10): run(date, test=True) date += timedelta(1)