with Automatic Data Extraction and Parsio.io?
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,
})
},
})
The Parsio.io API lets you extract valuable data from inbound emails. This means you can pull information like order details, shipping notifications, or contact info from automated emails without manual data entry. In Pipedream, you can use Parsio.io to trigger automated workflows based on the extracted data.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
parsio_io: {
type: "app",
app: "parsio_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.parsio.io/mailboxes/`,
headers: {
"X-API-Key": `${this.parsio_io.$auth.api_key}`,
},
})
},
})