with Predis.ai and Octoparse?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
predis_ai: {
type: "app",
app: "predis_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://brain.predis.ai/predis_api/v1/get_posts/`,
headers: {
"authorization": `${this.predis_ai.$auth.api_key}`,
},
params: {
brand_id: `${this.predis_ai.$auth.brand_id}`,
},
})
},
})
The Octoparse API allows you to automate the extraction of web data without coding, making it a powerful tool for data-driven workflows. With this API, you can control your scraping tasks, retrieve extracted data, and manage your account programmatically. When combined with Pipedream's serverless execution environment, you can build custom workflows to process, store, or act upon the data fetched by Octoparse. This integration can be a cornerstone for solutions in market research, competitor analysis, price monitoring, or lead generation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
octoparse: {
type: "app",
app: "octoparse",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://openapi.octoparse.com/taskGroup`,
headers: {
Authorization: `Bearer ${this.octoparse.$auth.oauth_access_token}`,
},
})
},
})