with iScraper and Reddit?
Emit new event each time a new comment is added to a subreddit.
Emit new event each time a new hot post is added to the top 10 items in a subreddit.
Emit new event each time a new link is added to a subreddit
The iScraper API is a powerful tool for extracting information from Instagram, making it possible to gather rich data sets from user profiles, hashtags, and posts. When leveraged through Pipedream, iScraper can become a part of diverse workflows, automating the collection of social media insights and integrating them with other services for analysis, reporting, or social media management. With Pipedream, you can create event-driven workflows that react to new data from iScraper, orchestrate data flow across multiple services, and handle complex tasks without managing infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
iscraper: {
type: "app",
app: "iscraper",
}
},
async run({steps, $}) {
const data = {
"profile_id": `williamhgates`,
}
return await axios($, {
method: "post",
url: `https://api.iscraper.io/v2/profile-details`,
headers: {
"Content-Type": `application/json`,
"X-API-KEY": `${this.iscraper.$auth.api_key}`,
},
data,
})
},
})
The Reddit API unlocks the potential to automate interactions with one of the largest online communities. With Pipedream, you can tap into the Reddit ecosystem to monitor trends, engage with audiences, or curate content. Whether it's tracking mentions of your brand, auto-posting to subreddits, or gathering data for analysis, the API offers a breadth of functionalities — from getting posts and comments to creating new threads and managing account settings.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
reddit: {
type: "app",
app: "reddit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://oauth.reddit.com/api/v1/me`,
headers: {
Authorization: `Bearer ${this.reddit.$auth.oauth_access_token}`,
},
})
},
})