Very nice result

This commit is contained in:
Gregory Soutade
2014-11-21 16:56:58 +01:00
parent c3c201fda1
commit e51e07f65e
5 changed files with 106 additions and 75 deletions

View File

@@ -1,4 +1,5 @@
import re
from iwla import IWLA
from awstats_robots_data import awstats_robots
@@ -21,7 +22,8 @@ def load():
# Basic rule to detect robots
def hook(hits):
def hook(iwla):
hits = iwla.getCurrentVisists()
for k in hits.keys():
super_hit = hits[k]

View File

@@ -1,4 +1,5 @@
import re
from iwla import IWLA
# Remove logo from indefero
logo_re = re.compile(r'^.+/logo/$')
@@ -19,7 +20,9 @@ def load():
# Basic rule to detect robots
def hook(hits):
def hook(iwla):
hits = iwla.getCurrentVisists()
for k in hits.keys():
super_hit = hits[k]