Skip to content

gvenkat/robots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages