diff --git a/src/utils/tos_scraper/scraper.go b/src/utils/tos_scraper/scraper.go index 7a7abe8..9f668bb 100644 --- a/src/utils/tos_scraper/scraper.go +++ b/src/utils/tos_scraper/scraper.go @@ -35,11 +35,10 @@ func GetBodyHtml(url string) (string, error) { s := rand.NewSource(time.Now().UnixNano()) r := rand.New(s) - userAgent := userAgents[r.Intn(len(userAgents))] req.Header.Set( "User-Agent", - userAgent, + userAgents[r.Intn(len(userAgents))], ) req.Header.Set( "Accept",