Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Crawlers = func() []Crawler { var crawlers []Crawler if err := json.Unmarshal(crawlersJson, &crawlers); err != nil { panic(err) } return crawlers }()
The list of crawlers, built from contents of crawler-user-agents.json.
Functions ¶
func MatchingCrawlers ¶
Finds all crawlers matching the User Agent and returns the list of their indices in Crawlers.
Types ¶
type Crawler ¶
type Crawler struct {
// Regexp of User Agent of the crawler.
Pattern string `json:"pattern"`
// Discovery date.
AdditionDate time.Time `json:"addition_date"`
// Official url of the robot.
URL string `json:"url"`
// Examples of full User Agent strings.
Instances []string `json:"instances"`
// Classification tags (e.g. "search-engine", "ai-crawler", "seo").
Tags []string `json:"tags,omitempty"`
}
Crawler contains information about one crawler.
func (Crawler) MarshalJSON ¶
func (*Crawler) UnmarshalJSON ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
clf-filter
command
clf-filter reads Combined Log Format lines from stdin and writes them to stdout, removing bot/crawler lines by default.
|
clf-filter reads Combined Log Format lines from stdin and writes them to stdout, removing bot/crawler lines by default. |
Click to show internal directories.
Click to hide internal directories.