auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
const axios = require("axios")
const cheerio = require("cheerio")
async function fetchHTML(url) {
const { data } = await axios.get(url)
return cheerio.load(data)
}
const url = "https://example.com"
const $ = await fetchHTML(url)
// Send yourself an email with some of the content
// on the page: https://docs.pipedream.com/notebook/destinations/email/
$send.email({
subject: `${url} h1 tag`,
text: $('h1').text(),
})