gvenkat / robots

Go library to work with robots.txt file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

robots

robots — is parser for robots.txt files for Go

Installation

$ go get github.com/gvenkat/robots 

Usage

Here's an example of using robots

import "github.com/gvenkat/robots"

...

// Instantiate from any io.Reader instance
parser := robots.FromReader(...)

// Or from a URL
parser := robots.FromURL(...)

// Or from a file 
parser := robots.FromFile(...)

Default crawler user-agent is:

Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0

License

See LICENSE file.

Resources

About

Go library to work with robots.txt file

License:MIT License


Languages

Language:Go 100.0%