Show
Ignore:
Timestamp:
01/14/08 12:40:30 (10 months ago)
Author:
haypo
Message:

apache_log:

  • maj liste ISP
  • parser.py: desactiver parseur d'Uger-Agent
  • host.py: cree l'option --ignore-bots
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • apache_log/apache_log/host.py

    r126 r139  
    3535        self.exclude_referrers = re.compile('^'+re.escape(website_url)) 
    3636        self.exclude_networks = [IP('127.0.0.0/8'), IP('192.168.0.0/16')] 
    37         self.exclude_domains = BOT_DOMAINS 
     37        self.exclude_domains = [] 
    3838        self.countries = set() 
    3939 
     
    158158    parser.add_option("--ignore-isp", help="Ignore ISP", 
    159159        action="store_true") 
     160    parser.add_option("--ignore-bots", help="Ignore bots", 
     161        action="store_true") 
    160162    parser.add_option("--syntax", help="Apache log syntax (default: %r)" % SYNTAX, 
    161163        type="str", default=SYNTAX) 
     
    176178        if options.ignore_isp: 
    177179            parser.exclude_domains += ISP_DOMAINS 
     180        if options.ignore_bots: 
     181            parser.exclude_domains += BOT_DOMAINS 
    178182 
    179183        parser.parseFile(filename)