From add23fbe9d0f481148ca70940e773e66076dfa22 Mon Sep 17 00:00:00 2001 From: Andreas Schulte Date: Sun, 29 Oct 2023 19:23:11 +0100 Subject: [PATCH] Updated to useragents.GetRandomUseragent() --- imdb-scraper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {