Skip to content

samvaughton/crawlerdetection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Crawler Detection

Tiny Go library to detect if a useragent is a bot, spider, crawler etc. Uses https://github.com/monperrus/crawler-user-agents for the data.

Usage

import github.com/samvaughton/crawlerdetection

API

  • crawlerdetection.GetCrawler(string) CrawlerPattern
  • crawlerdetection.IsCrawler(string) bool

Examples

crawlerdetection.IsCrawler("Googlebot/2.1") = true

About

Tiny Go library to detect if a useragent is a bot, spider, crawler etc. Uses https://github.com/monperrus/crawler-user-agents for the data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages