INNER CODE UNIT · Python
__ainit__
Vinyzu/Botright · botright/botright.py:55
async def __ainit__(
self,
headless: Optional[bool] = False,
block_images: Optional[bool] = False,
cache_responses: Optional[bool] = False,
user_action_layer: Optional[bool] = False,
scroll_into_view: Optional[bool] = True,
spoof_canvas: Optional[bool] = True,
mask_fingerprint: Optional[bool] = True,
use_undetected_playwright: Optional[bool] = False,
) -> None:
"""
Initialize a Botright instance with specified configurations.
Args:
headless (bool, optional): Whether to run the browser in headless mode. Defaults to False.
block_images (bool, optional): Whether to block images in the browser. Defaults to False.
cache_responses (bool, optional): Whether to cache HTTP responses. Defaults to False.