Scaling up
The localDendrite
browser is great for development, but if you want to start scaling up you might want to use a hosted browser instead. We currently support Browserless and Browserbase as provider.
Browserless
To get started you’ll need to head over to Browserless and create an account. Get the API Key and save them in your .env file like this:.env
Dendrite
. Import the BrowserlessConfig
as following from dendrite.remote import BrowserlessConfig
.
You can use the remote browser just as you would the local
Dendrite
browser. The only difference is that the browser is running in the cloud.Browserbase
To get started you’ll need to head over to Browserbase and create an account. Get both the Project ID and API Key and save them in your .env file like this:.env
Dendrite
. Import the BrowserbaseConfig
as following from dendrite.remote import BrowserbaseConfig
.
You can use the remote browser just as you would the local
Dendrite
browser. The only difference is that the browser is running in the cloud.Proxy and downloads
You can active rotating proxies by settingenable_proxy=True
when creating the BrowserbaseConfig
. The proxies are provided by Browserbase and you can track your usage on their website.
When using Browserbase as provider it is extra important that you call
browser.close=()
when you’re done. Otherwise the Browserbase session will continue until it timeouts.