Browserless reference
27 September 2022 (Updated 27 September 2022)
In a nutshell
Browserless is a browser automation service that lets you run Chrome instances on the cloud. This means that when using a tool like puppeteer, you can tell puppeteer to use a cloud instance of Chrome:
Browserless can be useful if you don’t want to manage Chrome instances on your own servers.
REST API
See Swagger docs for all endpoints. Noteworthy endpoints are:
POST /pdf
(Docs, Swagger, Joi Schema). Exposes most options from Puppeteer’sPDFOptions
.
Best practices
Always close sessions
Other notes
- Browserless can:
- Isolate different Chrome sessions from each other so that if one crashes, the rest aren’t affected.
- Run concurrent requests / multiple Chrome sessions.
- Restart automatically if anything crashes.
- If you have any issues with rendering fonts, check out this post.
Sources
Tagged:
Misc
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment