diff --git a/ChangeLog b/ChangeLog index 20e0327..be72f03 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,11 @@ -v0.4 (02/05/2016) +v0.4 (20/08/2016) ** User ** + Remove crwalers from feed parsers + Add display only switch (-p) ** Dev ** ** Bugs ** for robots, we have to use not_viewed_pages (feeds plugin) + gz files were not generated due to bad time comparison v0.3 (12/04/2016) ** User ** diff --git a/default_conf.py b/default_conf.py index c8eb791..c92d42a 100644 --- a/default_conf.py +++ b/default_conf.py @@ -34,7 +34,8 @@ display_hooks = [] # Extensions that are considered as a HTML page (or result) in opposite to hits pages_extensions = ['/', 'htm', 'html', 'xhtml', 'py', 'pl', 'rb', 'php'] -# HTTP codes that are cosidered OK + +# HTTP codes that are considered OK viewed_http_codes = [200, 304] # If False, doesn't cout visitors that doesn't GET a page but resources only (images, rss...) diff --git a/iwla.py b/iwla.py index b10f481..0322bc5 100755 --- a/iwla.py +++ b/iwla.py @@ -608,6 +608,10 @@ class IWLA(object): duplicated_stats['nb_visitors'] = stats['nb_visitors'] = len(self.valid_visitors.keys()) + if args.display_only: + self._generateDisplay() + return + self._callPlugins(conf.POST_HOOK_DIRECTORY) path = self.getDBFilename(cur_time) @@ -632,6 +636,9 @@ class IWLA(object): self._generateDisplay() def _generateDayStats(self): + if args.display_only: + return + visits = self.current_analysis['visits'] cur_time = self.meta_infos['last_time'] @@ -835,6 +842,10 @@ if __name__ == '__main__': default=False, help='Don\'t compress databases (bigger but faster, not compatible with compressed databases)') + parser.add_argument('-p', '--display-only', dest='display_only', action='store_true', + default=False, + help='Only generate display') + args = parser.parse_args() # Load user conf