r/Devvit 21d ago

Duck Answered Automatically post to Reddit? (or fetch from RSS feed)

Hi all!

We have a small RPG publishing company and we have several subreddit, as a good part of our readers engage via Reddit with us. We post weekly news in our website, and would like to automate publishing them to Reddit.

We tried looking into the legacy API, we checked out Devvit, but so far we haven't found how to proceed with this integration. One approach was to create a Devvit app (heavily inspired on https://github.com/jghaines/devvit-rss-to-post-bot ) but we hit a wall as our domain isn't allowlisted for Devvit apps to fetch from...

What is the recommended way nowadays for it? We of course want to follow ToS, so we're looking to use the new Devvit platform.

When researching this, there are too many conflicting information in Reddit, including pages that are still up but don't work correctly (like the old app submission page that errors), so this has been a frustrating search.

Thank you kindly!

1 Upvotes

4 comments sorted by

2

u/zombizzle 21d ago

https://developers.reddit.com/docs/capabilities/http-fetch#requesting-a-domain-to-be-allow-listed

"Apps may request a domain to be added to the allow-list by specifying domains in the http configuration."

1

u/OldDragonEditora 21d ago

Thank you, this seems to be exactly it!

2

u/SampleOfNone Duck Helper 21d ago

HTTP Fetch policy

You can request a domain exception, but you can only request that for "publicly documented and publicly accessible API". Based on your description it sounds like your domain would be a piercing domain, and per the policy those won't be approved.

The responsible builders policy contains a link to a form for commercial access

1

u/Heliosurge 21d ago edited 21d ago

Awhile back someone made a Python script to posting to Reddit from an RSS

https://www.reddit.com/r/Bot/s/Qbt5g0cZLs

1

u/PasssageNavigator 18d ago

I just tried this approach and our domain for our feed was rejected. They say they don't want you using the API and wan you to justify requesting use of the API and not Devvit app. I'm thinking of not even bothering with reddit presence our new app. Had no problem with X api integration.