browser_utils
autogen.browser_utils.SimpleTextBrowser
SimpleTextBrowser
(In preview) An extremely simple text-based web browser comparable to Lynx. Suitable for Agentic use.
Initialize the browser with the given parameters.
Name | Description |
---|---|
start_page | Type: str | None Default: None |
viewport_size | Type: int | None Default: 8192 |
downloads_folder | Type: str | None Default: None |
bing_base_url | Type: str Default: ‘https |
bing_api_key | Type: str | None Default: None |
request_kwargs | Type: dict[str, typing.Any] | None Default: None |
Instance Attributes
address
Return the address of the current page.
page_content
Return the full contents of the current page.
viewport
Return the content of the current viewport.
Instance Methods
page_down
Move the viewport down by one page.
page_up
Move the viewport up by one page.
set_address
Set the address of the current page.
Name | Description |
---|---|
uri_or_path | The URI or path to set as the current page. Type: str |
visit_page
Update the address, visit the page, and return the content of the viewport.
Name | Description |
---|---|
path_or_uri | The URI or path to visit. Type: str |