So I managed to sort of get the bot to work. But it doesn't do it for every post?
Hi @MyAngelMiia - good seeing you over here from Reddit.
So, I looked into this a bit more for you - it's possible.
In your trigger data from Reddit, this is what you're looking for:
However, if you follow that link, you'll get this:
However, if you change the URL a bit, by removing everything after and including the ? and changing "https://preview." to "https://i."... you get the image you want:
How to do this in Zapier? With "Formatter" steps:
- That image URL is in something called a 'line item', you need to make it text:
- Then you need to split that resulting 'text' before the '?':
- Then finally you just need to replace "https://preview." with "https://i."
- Now you have your image URL to post on Twitter:
I hope that helps!
I created a template zap you can use. Just click this link when in your Zapier account and the zap will be installed in your account:
https://zapier.com/app/editor/shared/2141256aa34094390f9d1828208a5c29da101771
@MyAngelMiia - to your other questions, this zap will only trigger on posts that get categorised as hot by the Reddit algorithm:
The other option you have is to use the "New Post or Comment Matching Search in Reddit" trigger:
The only issue with that is you can't narrow to specific subreddits, so it would rely on posts in your subreddit having some unique word or phrase you can search on.