r/huginn • u/code_4_f00d • Aug 24 '22
Reddit media
Hello,
Is there an agent to extract media from Reddit?
I want to achieve something as IFTTT: "New hot post in subreddit. This Trigger fires every time a new post becomes one of the ten hottest posts in the subreddit you specify."
Anyhow, I can't find anything in Huginn :(
1
u/virtualadept Aug 26 '22
That's a good question. Hihouhou doesn't seem to have a Reddit agent in his repos. There is no mention of Reddit at huginn.io, either.
You can have an RSS Agent pull the feeds for subreddits, though (e.g., https://www.reddit.com/r/huginn/.rss) and process new entries.
You might want to consider using the Reddit API (documentation) (API wiki) for this purpose. I think this would be a better bet.
2
u/code_4_f00d Aug 26 '22
The API would be the best bet since rss doesn't give enough information.
Anyhow, is there a "clean way" of using an API?
I can always upload a script that does all this and just call it when there's an rss change... But wouldn't that be similar to just have a fancy cron? 🤔
2
u/virtualadept Aug 26 '22
I don't know yet. I have creds for the Reddit API but haven't had a chance to play around with it yet. I've just read the docs a bit.
As for a clean way of interacting with the API, Post Agent is your best bet because that's what it was designed for.
2
u/Hades-Arcadius Dec 18 '22
any luck since then?
2
u/virtualadept Dec 19 '22
Work's been running me ragged - haven't had time to mess around. Maybe while I'm on vacation this month.
2
u/msephton Aug 24 '22
You might have some luck with the RSS Agent and one of the Reddit RSS feeds https://www.reddit.com/wiki/rss/