with ScrapingAnt and Apify (OAuth)?
Send a request using the standard extraction method of ScrapingAnt. See the documentation
Performs an execution of a selected Actor in Apify. See the documentation
Run a specific task and return its dataset items. See the documentation
Executes a scraper on a specific website and returns its content as HTML. This action is perfect for extracting content from a single page. See the documentation
The ScrapingAnt API allows you to scrape web pages without getting blocked. It can handle JavaScript rendering, cookies, sessions, and can even interact with web pages as if a real person were browsing. Using Pipedream, you can integrate ScrapingAnt with countless other apps to automate data extraction and feed this data into various business processes, analytics tools, or databases.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
scrapingant: {
type: "app",
app: "scrapingant",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.scrapingant.com/v2/general`,
headers: {
"x-api-key": `${this.scrapingant.$auth.api_token}`,
},
params: {
url: `pipedream.com`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
apify_oauth: {
type: "app",
app: "apify_oauth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.apify.com/v2/users/me`,
headers: {
Authorization: `Bearer ${this.apify_oauth.$auth.oauth_access_token}`,
},
})
},
})