Updated to useragents.GetRandomUseragent()

This commit is contained in:
Andreas Schulte 2023-10-29 19:23:11 +01:00
parent 9fd87c0d22
commit add23fbe9d
Signed by: andreas
GPG Key ID: DCD1B6A247B69DB6

View File

@ -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) {