From b02cb1502a03d19b7ea1d91ee2cf1be844e3d8b7 Mon Sep 17 00:00:00 2001 From: pluja Date: Sat, 10 Feb 2024 13:50:24 +0100 Subject: [PATCH] use env variable for scraper --- src/utils/tos_scraper/scraper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/tos_scraper/scraper.go b/src/utils/tos_scraper/scraper.go index d8e0e0f..61e2c77 100644 --- a/src/utils/tos_scraper/scraper.go +++ b/src/utils/tos_scraper/scraper.go @@ -25,7 +25,7 @@ type ScraperResponse struct { func GetBody(url string) (string, error) { // Send a GET request to os.Getenv("SCRAPER_API_URL")/scrap?url=url // Unmarshal the response and return the HTML content - scraper_api := utils.Getenv("SCRAPER_API_URL", "http://localhost:3011") + scraper_api := utils.Getenv("CRAWLER_API_URL", "http://localhost:3011") // Request the HTML content resp, err := http.Get(fmt.Sprintf("%v/scrap?url=%v", scraper_api, url))