Browserless
Browserless is Headless Browser & Website Automation Tool, used for Operations Automation Data survey and collection . Browserless is a headless browser service that supports automated web crawling, testing and PDF generation for developers.

Prepare
When referring to this document to use Browserless, please read and ensure the following points:
-
Login to Websoft9 Console and find or install Browserless:
- Go to My Apps listing applications
- Go to App Store installing target application
-
This application is installed by Websoft9 console.
-
The purpose of this application complies with the SSPL-v1 open source license agreement.
-
Configure the domain name or server security group opens external network ports for application access.
Getting started
Test the application
-
After installing Browserless in the Websoft9 console, view the application details through My Applications and get the access URL in the Access tab.
-
Run the following script to test the application, and it will download the website images successfully
curl -X POST \http://访问URL/screenshot?token=YOUR_API_TOKEN_HERE \-H 'Cache-Control: no-cache' \-H 'Content-Type: application/json' \-d '{"url": "https://www.websoft9.com/","options": {"fullPage": true,"type": "png"}}' \--output "screenshot.png"