LlamaIndex
Load webpages into your LLamaIndex pipeline
Load Documents from dynamic Web Pages and load images.
1
Get your API Key
Go over the Dashboard’s Settings tab:
Then, copy your API Key directly from the input and set it in the BROWSERBASE_KEY
environment variable.
2
Install the Browserbase SDK
3
Load documents or images
Load documents
Python
The default value text_content=False
will return HTML as a LlamaIndex Document
.
Setting text_content=True
will return LlamaIndex Document
with text only.
Load images
Python
By default, the screenshot()
method takes a screenshot of the visible viewport.
To take a full-page screenshot, pass the full_page=True
option.
The reference of the browserbase
package is available on GitHub.
Was this page helpful?