From a2a91b7b2eaaf056c1987c70f464fb8fd9b1af80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Musab=20G=C3=BCltekin?= Date: Sun, 23 May 2021 23:48:55 +0300 Subject: [PATCH] Default allocator options are used on rendered scraping. It can be changed using custom Client or changing client options after scraper creation. --- geziyor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/geziyor.go b/geziyor.go index 87b93be..2386984 100644 --- a/geziyor.go +++ b/geziyor.go @@ -1,6 +1,7 @@ package geziyor import ( + "github.com/chromedp/chromedp" "github.com/geziyor/geziyor/cache" "github.com/geziyor/geziyor/client" "github.com/geziyor/geziyor/export" @@ -77,6 +78,7 @@ func NewGeziyor(opt *Options) *Geziyor { RetryTimes: opt.RetryTimes, RetryHTTPCodes: opt.RetryHTTPCodes, RemoteAllocatorURL: opt.BrowserEndpoint, + AllocatorOptions: chromedp.DefaultExecAllocatorOptions[:], }) if opt.Cache != nil { geziyor.Client.Transport = &cache.Transport{