"Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)": true,
"spiderbot": true,
"TelegramBot": true,
"Traackr.com Bot": true,
"Twitterbot/1.0": true,
"voltron": true,
}
+// IsBot returns whether or not the provided User-Agent string is a known bot
+// or crawler.
func IsBot(ua string) bool {
if _, ok := bots[ua]; ok {
return true
}
return false
}
diff --git a/bots/findBots.sh b/bots/findBots.sh
index 3e95392..d873224 100755
--- a/bots/findBots.sh
+++ b/bots/findBots.sh
@@ -1,32 +1,37 @@
#!/bin/bash
#
# Generates a Go map containing all bots that have accessed Write.as