Best answer

top / popular Subreddit post to tweeting an image

  • 15 October 2019
  • 3 replies
  • 1135 views

Userlevel 1

I'm trying to take popular/top reddit posts and tweet them out on a twitter similar to https://twitter.com/OsuGameTweet but with images instead of text.


My subreddit is /r/OneTrueMiia, and my twitter account is @OneTrueMiia and I'm trying to take popular posts to twitter to make it easier for users.


icon

Best answer by AndrewJDavison_Luhhu 15 October 2019, 10:46

View original

3 replies

Userlevel 1

So I managed to sort of get the bot to work. But it doesn't do it for every post?


Userlevel 7
Badge +10

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:

Screen Shot 2019-10-15 at 10.34.20.pngHowever, if you follow that link, you'll get this:

Screen Shot 2019-10-15 at 10.33.55.pngHowever, 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:

Screen Shot 2019-10-15 at 10.35.47.pngHow to do this in Zapier? With "Formatter" steps:

  • That image URL is in something called a 'line item', you need to make it text:

Screen Shot 2019-10-15 at 10.38.32.pngScreen Shot 2019-10-15 at 10.38.46.png

  • Then you need to split that resulting 'text' before the '?':
  • Screen Shot 2019-10-15 at 10.40.35.pngScreen Shot 2019-10-15 at 10.40.54.pngThen finally you just need to replace "https://preview." with "https://i."
  • Screen Shot 2019-10-15 at 10.43.23.pngScreen Shot 2019-10-15 at 10.44.16.pngNow you have your image URL to post on Twitter:

Screen Shot 2019-10-15 at 10.44.58.pngI 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




Userlevel 7
Badge +10

@MyAngelMiia - to your other questions, this zap will only trigger on posts that get categorised as hot by the Reddit algorithm:

Screen Shot 2019-10-15 at 10.47.33.pngThe other option you have is to use the "New Post or Comment Matching Search in Reddit" trigger:

Screen Shot 2019-10-15 at 10.50.12.pngThe 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.




Reply