with Automatic Data Extraction and Acronis Cyber Protect Cloud?
Extract data from a specified URL See the docs here
The Automatic Data Extraction API by Zyte specializes in extracting structured data from web pages. When incorporated into Pipedream workflows, this API allows you to automate the process of gathering web data, which can feed into various tasks such as market research, price monitoring, or even lead generation. By triggering workflows with new data inputs, processing and storing the extracted data, and connecting to other apps, Pipedream amplifies the API's utility.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
automatic_data_extraction: {
type: "app",
app: "automatic_data_extraction",
}
},
async run({steps, $}) {
const data = JSON.stringify([{
'url': 'http://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html',
'pageType': 'product',
}]);
return await axios($, {
method: "post",
url: `https://autoextract.scrapinghub.com/v1/extract`,
headers: {
"Content-Type": `application/json`,
},
auth: {
username: `${this.automatic_data_extraction.$auth.api_key}`,
password: ``,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
acronis_cyber_protect_cloud: {
type: "app",
app: "acronis_cyber_protect_cloud",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.acronis_cyber_protect_cloud.$auth.data_center_url}/api/2/clients/${this.acronis_cyber_protect_cloud.$auth.client_id}`,
headers: {
Authorization: `Bearer ${this.acronis_cyber_protect_cloud.$auth.oauth_access_token}`,
},
})
},
})