This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Hack to look for user agent strings in typical Apache style log and | |
count up the number of requests by bots vs non-bots. The list of bot | |
user agents comes from http://www.user-agents.org/ but has had some | |
agents added to it, since the user-agents.org list is pretty out of date, e.g. | |
no Bing?! | |
""" |