How can i restricts third parties URLs in go-colly?

I have to crawl suppose domain ,in visiting URLs it redirect to lots of third parties URLs like, etc.

Is there any rules for go colly to restriction of domain like scrapy linkextractor rules?

colly.Collector has a field AllowedDomains. Try setting this.

And also RedirectHandler in Collector can be used

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.