Default allocator options are used on rendered scraping. It can be changed using custom Client or changing client options after scraper creation.
This commit is contained in:
parent
5aa2c2540e
commit
a2a91b7b2e
@ -1,6 +1,7 @@
|
|||||||
package geziyor
|
package geziyor
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/chromedp/chromedp"
|
||||||
"github.com/geziyor/geziyor/cache"
|
"github.com/geziyor/geziyor/cache"
|
||||||
"github.com/geziyor/geziyor/client"
|
"github.com/geziyor/geziyor/client"
|
||||||
"github.com/geziyor/geziyor/export"
|
"github.com/geziyor/geziyor/export"
|
||||||
@ -77,6 +78,7 @@ func NewGeziyor(opt *Options) *Geziyor {
|
|||||||
RetryTimes: opt.RetryTimes,
|
RetryTimes: opt.RetryTimes,
|
||||||
RetryHTTPCodes: opt.RetryHTTPCodes,
|
RetryHTTPCodes: opt.RetryHTTPCodes,
|
||||||
RemoteAllocatorURL: opt.BrowserEndpoint,
|
RemoteAllocatorURL: opt.BrowserEndpoint,
|
||||||
|
AllocatorOptions: chromedp.DefaultExecAllocatorOptions[:],
|
||||||
})
|
})
|
||||||
if opt.Cache != nil {
|
if opt.Cache != nil {
|
||||||
geziyor.Client.Transport = &cache.Transport{
|
geziyor.Client.Transport = &cache.Transport{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user