with Webscrape AI and Rebrandly?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
webscrape_ai: {
type: "app",
app: "webscrape_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.webscrapeai.com/scrapeWebSite`,
params: {
url: `https://news.ycombinator.com/`,
command: `I want to extract all the news details`,
apiKey: `${this.webscrape_ai.$auth.api_key}`,
schema: `{"author":"string","comments_count":"integer","points":"integer","posted_time":"string","title":"string","url":"url"}`,
},
})
},
})
The Rebrandly API enables the creation, updating, and management of branded short links. Within Pipedream, you can leverage this API to automate custom URL shortening workflows, analyze link performance, and seamlessly integrate URL management into your business processes or applications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rebrandly: {
type: "app",
app: "rebrandly",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.rebrandly.com/v1/account`,
headers: {
Authorization: `Bearer ${this.rebrandly.$auth.oauth_access_token}`,
},
})
},
})