SamuelScheit / puppeteer-stream

A Library for puppeteer to retrieve audio and/or video streams
MIT License
335 stars 105 forks source link

[Question] Using puppeteer-extra plugins #24

Closed brodysctt closed 1 year ago

brodysctt commented 2 years ago

Would love to use the adblocker plugin for my current project, and the stealth plugin for my next one.

I tried making a few adjustments to PuppeteerStream.ts:

import { LaunchOptions, Browser, Page, BrowserOptions, ChromeArgOptions } from "puppeteer";
import puppeteer from 'puppeteer-extra'
import Adblocker from 'puppeteer-extra-plugin-adblocker'
puppeteer.use(AdblockerPlugin()) // Added before the browser is initialized on line 69.

The result is an indefinitely loading blank tab – any ideas on how I could get it to work?

SamuelScheit commented 2 years ago

How do you start the puppeteer browser? Can you show your launch code

brodysctt commented 2 years ago

I'm just running the file.js example as is – no changes made there

stevebutterworth commented 2 years ago

Any progress on this? I love the extension but need to be able to use it with puppeteer-extra too.

SamuelScheit commented 1 year ago

Have a look at the example file.