Documentation ¶
Overview ¶
Package robots provides support for parsing robots.txt files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RobotsData ¶
type RobotsData struct {
Groups []RobotsGroup
}
func GetRobotsForURL ¶
func GetRobotsForURL(target *url.URL, factory client.ClientFactory) (*RobotsData, error)
func ParseRobotsTxt ¶
func ParseRobotsTxt(text []byte) (*RobotsData, error)
func (*RobotsData) GetAllPaths ¶
func (data *RobotsData) GetAllPaths() []string
func (*RobotsData) GetForUserAgent ¶
func (data *RobotsData) GetForUserAgent(targetAgent string) []string
type RobotsGroup ¶
Click to show internal directories.
Click to hide internal directories.