INNER CODE UNIT · Python

new_browser

Vinyzu/Botright · botright/botright.py:134

    async def new_browser(self, proxy: Optional[str] = None, **launch_arguments) -> BrowserContext:
        """
        Create a new Botright browser instance with specified configurations.

        Args:
            proxy (str, optional): Proxy server URL to use for the browser. Defaults to None.
            **launch_arguments: Additional launch arguments to the browser. See at `Playwright Docs <https://playwright.dev/python/docs/api/class-browsertype#browser-type-launch-persistent-context>`_.

        Returns:
            BrowserContext: A new browser context for web scraping or automation.
        """

        # Calling ProxyManager and Faker to get necessary information for Botright
        _proxy: ProxyManager = await ProxyManager(self, proxy)
        _faker: Faker = await Faker(self, _proxy)

        # Launching Main Browser
        if self.mask_fingerprint:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…