with Axesso Data Service - Amazon and Puppeteer?
Requests product detail information using Axesso Data Service. See the documentation
Get the HTML of a webpage using Puppeteer. See the documentation for details.
Lists reviews for an Amazon product using Axesso Data Service. See the documentation
Get the title of a webpage using Puppeteer. See the documentation
Search Amazon products by keyword using Axesso Data Service. See the documentation
The Axesso Data Service - Amazon API lets you tap into a wealth of data from Amazon, including product searches, price trends, and reviews. In Pipedream, you can harness this data to drive insights, track products, and create custom notifications or reports. Pipedream’s serverless platform simplifies the process of setting up automated workflows that use the Axesso API to respond to events and perform actions in other apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
axesso_data_service: {
type: "app",
app: "axesso_data_service",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.axesso.de/amz/amazon-lookup-product`,
headers: {
"axesso-api-key": `${this.axesso_data_service.$auth.api_key}`,
},
params: {
url: `https://www.amazon.com/dp/B09938DVH2`,
},
})
},
})
Puppeteer is a Node.js library which provides a high-level API to control Chrome/Chromium over the DevTools Protocol. Puppeteer runs in headless mode on Chromium on Pipedream.
Using Puppeteer you can perform tasks including:
import { puppeteer } from '@pipedream/browsers';
export default defineComponent({
async run({steps, $}) {
const browser = await puppeteer.browser();
// Interact with the web page programmatically
// See Puppeeter's Page documentation for available methods:
// https://pptr.dev/api/puppeteer.page
const page = await browser.newPage();
await page.goto('https://pipedream.com/');
const title = await page.title();
const content = await page.content();
// The browser needs to be closed, otherwise the step will hang
await browser.close();
return { title, content }
},
})