From d27f68ee1c4e6aa741175148290fe5d9e28c0b0d Mon Sep 17 00:00:00 2001 From: jakopako Date: Sat, 20 Apr 2024 22:02:45 +0200 Subject: [PATCH] added comment --- scraper/scraper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/scraper/scraper.go b/scraper/scraper.go index 42ff0c1..e9a06ac 100644 --- a/scraper/scraper.go +++ b/scraper/scraper.go @@ -534,6 +534,7 @@ func (c *Scraper) fetchToDoc(url string, opts fetch.FetchOpts) (*goquery.Documen return nil, err } + // in debug mode we want to write all the html's to files if c.Debug { bs := make([]byte, 8) _, err := rand.Read(bs)