This document uses an SCF function and Puppeteer to perform scheduled tasks on webpage content such as data collection and storage. You can also perform complicated scheduled web tasks like data crawling, scheduled sign-in, and webpage inspection.
- If you need to adjust the trigger configuration according to your needs, please select Custom.
- To create a scheduled trigger after the test is successful, please select Create Later.
The current template function references Puppeteer to screencapture the webpage content and convert it to a Base64 value for printout in the function log. You can modify the template according to your own scheduled task needs.
For example, run the following command to get the page title:
// Sampleconst = await . (); console );
Add the following code to set the page click attribute.
// Sample page click attribute await page.click('a');
For more information on how to use Puppeteer, please see here. With this tool, you can access page content at scheduled times and perform task operations on the page, such as data crawling and sign-in.
Contact our sales team or business advisors to help your business.
Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.
Was this page helpful?