external chromedp
All checks were successful
/ Make image (push) Successful in 39s

This commit is contained in:
nquidox 2025-12-20 16:31:27 +03:00
parent ae4dd4bf63
commit d63d345a9b

View file

@ -301,7 +301,10 @@ func (s *MandarakeParser) initClient2() error {
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
ctx, _ = chromedp.NewContext(ctx)
allocCtx, allocCancel := chromedp.NewRemoteAllocator(ctx, "ws://headless-shell:9222")
defer allocCancel()
ctx, _ = chromedp.NewContext(allocCtx)
if err := chromedp.Run(ctx,
chromedp.Navigate(s.parseParams.cookieUrl),