colly: Index | Files

package extensions

import ""

Package extensions implements various helper addons for Colly


Package Files

extensions.go random_user_agent.go referrer.go url_length_filter.go

func RandomUserAgent Uses

func RandomUserAgent(c *colly.Collector)

RandomUserAgent generates a random browser user agent on every request

func Referrer Uses

func Referrer(c *colly.Collector)

Referrer sets valid Referrer HTTP header to requests. Warning: this extension works only if you use Request.Visit from callbacks instead of Collector.Visit.

func URLLengthFilter Uses

func URLLengthFilter(c *colly.Collector, URLLengthLimit int)

URLLengthFilter filters out requests with URLs longer than URLLengthLimit

Package extensions imports 3 packages (graph). Updated 2018-03-12. Refresh now. Tools for package owners.