diff --git a/imdb-scraper.go b/imdb-scraper.go index 59542a5..1d149b0 100644 --- a/imdb-scraper.go +++ b/imdb-scraper.go @@ -69,7 +69,7 @@ func Scrap(id string) (IMDbEntry, error) { c := colly.NewCollector( colly.MaxDepth(1), colly.AllowedDomains("www.imdb.com"), - colly.UserAgent(useragents.GetRandomUserAgent()), + colly.UserAgent(useragents.GetRandomUseragent()), ) c.OnRequest(func(r *colly.Request) {