Headless Chrome API with an innovative tailor-made browser for unmatched performance and efficiency in browser automation.
import puppeteer from "puppeteer-core";
export default defineComponent({
props: {
lightpanda: {
type: "app",
app: "lightpanda",
}
},
async run({ steps, $ }) {
const browser = await puppeteer.connect({
browserWSEndpoint: `wss://cloud.lightpanda.io/ws?token=${this.lightpanda.$auth.api_token}`,
});
const page = await browser.newPage();
await page.goto('https://pipedream.com/');
const title = await page.title();
const content = await page.content();
await browser.close();// The browser needs to be closed, otherwise the step will hang
return { title, content }
},
})
The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.