Skip to content

How to Add Custom Arguments When Creating a Browser Instance in Scrapybara? #46

@Aryavir07

Description

@Aryavir07

Hi there!

I’m currently working with Scrapybara, and I wanted to pass custom Chromium arguments like the following when creating the browser instance: ["--disable-dev-shm-usage", "--disable-gpu", "--disable-background-networking", "--disable-background-timer-throttling", "--disable-backgrounding-occluded-windows",...]

I also like doing something like context.add_init_script(<some script>)

I understand that Scrapybara uses Playwright under the hood, but I couldn’t find a clear way to pass these arguments when launching the browser.

Is there a way to add custom arguments to the browser instance in Scrapybara?

I’ve tried to modify the Playwright setup directly, but I wanted to check with the maintainers first if there's a built-in way to handle this in Scrapybara.

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions