with Webscrape AI and Faros?
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 Faros API opens a gateway to streamline data from engineering tools into analytics-ready formats. With it, you can automate the aggregation of data from project management, source control, CI/CD, and incident management systems into Faros's unified data model. It's about turning disparate data points into actionable insights, which can lead to more informed decision-making and streamlined workflows.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
faros: {
type: "app",
app: "faros",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.faros.ai/v0/admin/user/me`,
headers: {
"Content-Type": `application/json`,
"Authorization": `${this.faros.$auth.api_key}`,
},
})
},
})