deanishe Posted December 29, 2014 Share Posted December 29, 2014 (edited) Reddit for Alfred Find subreddits and browse hot posts on Reddit.Download Get Reddit for Alfred from GitHub.Usage r/ — Show list of popular subreddits r/<query> — Search for subreddits matching <query> ↩ or ⇥ or ⌘+NUM — Show 50 hottest posts in subreddit r/subreddit/ — Show 50 hottest posts on subreddit <subreddit> r/<subreddit>/<query> — Filter posts by <query> ↩ or ⌘+NUM — Open post URL in default browser ⌘+↩ — Open Reddit comments in default browser ⌘+L — Show full post title in Alfred's Large Text window Note: OS X's "delete word" shortcut (⌥+⌫) is very handy for backing out of a subreddit.Description A fairly rudimentary workflow to browse subreddits. The subreddit search, r/<query>, uses Reddit's API to search for subreddits that match <query>. 25 results are retrieved by default. The subreddit search can be a bit odd, which is due to the oddness of Reddit's search function. Search within a subreddit, r/subreddit/<query>, only filters the list of hot results. 50 results are retrieved by default. Edited May 30, 2020 by deanishe frankspin and mixterdee 2 Link to comment
DrLulz Posted January 24, 2015 Share Posted January 24, 2015 This is awesome! Thank you. Link to comment
mixterdee Posted January 27, 2015 Share Posted January 27, 2015 Excellent. A nice little addition to my Alfred. Thanks Link to comment
deanishe Posted September 17, 2017 Author Share Posted September 17, 2017 Updated to v1.5. The workflow now caches a list of top subreddits and your own history so you don't always have to wait for the API. Link to comment
nikivi Posted September 17, 2017 Share Posted September 17, 2017 (edited) Oo. It even expands to search for threads inside the subreddit. That's so awesome. Much speed. Edited September 17, 2017 by nikivi xilopaint and deanishe 2 Link to comment
xilopaint Posted September 17, 2017 Share Posted September 17, 2017 24 minutes ago, nikivi said: Much speed. ? Link to comment
deanishe Posted September 17, 2017 Author Share Posted September 17, 2017 34 minutes ago, nikivi said: It even expands to search for threads inside the subreddit. Only hot posts. You can't actually search within a subreddit, only filter the list of hot posts. Link to comment
Maddog Posted September 18, 2017 Share Posted September 18, 2017 The shift key didn't work for me before but now it does, now I really like this workflow! I wish there was a place to paste my own urls: 1. manual multireddits - pics+funny 2. personal multireddits - /u/<user>/m/<multi> Also, how about moving to the next page? Is that possible? Link to comment
deanishe Posted September 18, 2017 Author Share Posted September 18, 2017 Multireddits work. It just doesn't remember them, as they aren't real subreddits. I'll see if that's fixable. Personal subreddits will take more work. Also a maybe. Next page: Doubtful. Link to comment
deanishe Posted September 18, 2017 Author Share Posted September 18, 2017 Well, that was easier than expected. v1.6 supports multireddits properly (i.e. it remembers them) and user multis. User multis work like this: r/u/<username>/m/<multi>/[<query>] Maddog and xilopaint 2 Link to comment
Maddog Posted September 18, 2017 Share Posted September 18, 2017 Wow, that's amazing! Thanks! Btw, I did a lot of reddit parsing in my day, if I remember correctly, the next page url is dead-simple, it's something like reddit.com/your-url/.json?after=<id> and the <id> is the last id of the post from the previous page, so it works the same in any reddit url. Link to comment
deanishe Posted September 18, 2017 Author Share Posted September 18, 2017 22 minutes ago, Maddog said: next page url is dead-simple There's a bit more to it that just having the URL. Link to comment
xilopaint Posted January 11, 2019 Share Posted January 11, 2019 Ampersands are showing up in the subreddit descriptions as &. Link to comment
deanishe Posted April 23, 2019 Author Share Posted April 23, 2019 Added new NSFW option to include subreddits marked "over 18" in search results. bivalvegruff 1 Link to comment
deanishe Posted April 24, 2019 Author Share Posted April 24, 2019 On 1/11/2019 at 3:14 AM, xilopaint said: Ampersands are showing up in the subreddit descriptions as &. Can you give me an example, @xilopaint? I really don't feel like entering random subreddit names until I find one with an ampersand in the title, so I can test it. Also, I think I've fixed your issue with duplicates. It won't help if you've already got duplicates in your cache, but it should prevent any further duplicates from being saved. Link to comment
xilopaint Posted April 26, 2019 Share Posted April 26, 2019 On 4/24/2019 at 6:36 PM, deanishe said: Can you give me an example, @xilopaint? r/privacy Link to comment
deanishe Posted April 26, 2019 Author Share Posted April 26, 2019 9 minutes ago, xilopaint said: r/privacy Thanks. Fixed in v1.8.1. xilopaint 1 Link to comment
dunkaroo Posted April 27, 2019 Share Posted April 27, 2019 This is something I don't know I needed. Love it. Is it possible to have it show 50 latest post instead of hottest post? Thank you Link to comment
deanishe Posted April 27, 2019 Author Share Posted April 27, 2019 1 hour ago, dunkaroo said: Is it possible to have it show 50 latest post instead of hottest post? It's easy enough by editing the workflow. In this line of the file reddit.py change hot.json to new.json. Link to comment
dunkaroo Posted April 28, 2019 Share Posted April 28, 2019 (edited) Thank you so much!! EDIT* Just looked at your file, love your comment ascii art lol Edited April 28, 2019 by dunkaroo Link to comment
xilopaint Posted May 5, 2019 Share Posted May 5, 2019 Is it possible to sort subreddits for the most recently accessed? Link to comment
Jonahgs Posted May 30, 2020 Share Posted May 30, 2020 Hey! Great workflow, but I am wondering if there is a way to configure this so that when reddit is opened through the workflow, it opens in my account. Link to comment
deanishe Posted May 30, 2020 Author Share Posted May 30, 2020 2 hours ago, Jonahgs said: it opens in my account What do you mean? Link to comment
Jonahgs Posted May 31, 2020 Share Posted May 31, 2020 If I use the workflow, when it opens reddit in chrome it is for some reason not opening with my login information remember. Link to comment
deanishe Posted May 31, 2020 Author Share Posted May 31, 2020 That's a problem with Chrome or your setup, tbh. There's nothing I can reasonably do about it, I'm afraid. The workflow isn't opening reddit in Chrome, as you put it. It just asks macOS to open the URL, the same way every normal application does. Whether it opens in Safari or Chrome or Firefox or whatever, and how the browser handles it is determined by your OS and browser configuration. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now