@@ -13,8 +13,10 @@ def browser_base_fetch(api_key: str, project_id: str, link: List[str], text_cont
1313 - `api_key`: The API key provided by BrowserBase.
1414 - `project_id`: The ID of the project on BrowserBase where you want to fetch data from.
1515 - `link`: The URL or link that you want to fetch data from.
16- - `text_content`: A boolean flag to specify whether to return only the text content (True) or the full HTML (False).
17- - `async_mode`: A boolean flag that determines whether the function runs asynchronously (True) or synchronously (False, default).
16+ - `text_content`: A boolean flag to specify whether to return only the
17+ text content (True) or the full HTML (False).
18+ - `async_mode`: A boolean flag that determines whether the function runs asynchronously
19+ (True) or synchronously (False, default).
1820
1921 It initializes a Browserbase object with the given API key and project ID,
2022 then uses this object to load the specified link.
@@ -37,8 +39,10 @@ def browser_base_fetch(api_key: str, project_id: str, link: List[str], text_cont
3739 api_key (str): The API key provided by BrowserBase.
3840 project_id (str): The ID of the project on BrowserBase where you want to fetch data from.
3941 link (str): The URL or link that you want to fetch data from.
40- text_content (bool): Whether to return only the text content (True) or the full HTML (False). Defaults to True.
41- async_mode (bool): Whether to run the function asynchronously (True) or synchronously (False). Defaults to False.
42+ text_content (bool): Whether to return only the text content
43+ (True) or the full HTML (False). Defaults to True.
44+ async_mode (bool): Whether to run the function asynchronously
45+ (True) or synchronously (False). Defaults to False.
4246
4347 Returns:
4448 object: The result of the loading operation.
@@ -47,7 +51,8 @@ def browser_base_fetch(api_key: str, project_id: str, link: List[str], text_cont
4751 try :
4852 from browserbase import Browserbase
4953 except ImportError :
50- raise ImportError ("The browserbase module is not installed. Please install it using `pip install browserbase`." )
54+ raise ImportError (f"""The browserbase module is not installed.
55+ Please install it using `pip install browserbase`.""" )
5156
5257
5358 browserbase = Browserbase (api_key = api_key , project_id = project_id )
0 commit comments