A Steem feed: filtering posts by author and category

in steem-tools •  8 years ago 

Hey Steemians,

So we can follow anyone on the blockchain, but there’s no feed containing just the posts by people we follow, right? This is something many people miss, me included. So I’ve put up a solution today using the wonderful piston library by @xeroc. It’s a Python3 command-line script:

#!/opt/local/bin/python3

from piston.steem import Steem
s = Steem()

# List your favourite authors here
users = [ 'dan', 'ned' ]
# and categories here
categories = [ 'steem', 'steemit' ]

posts = sorted(
    [p for u in users for p in s.get_blog(u)] +
    [p for c in categories for p in s.get_posts(20, category=c)],
    key = lambda p: p['created'])
for p in posts:
    print('%s   by %-36s   %5d votes %15s    | %s\nhttp://steemit.com%s' % (
        p['created'], (p['author'] + ' in ' + p['category']), p['net_votes'],
        p['total_pending_payout_value'], p['title'], p['url']))

Put your favourite names into the ‘users’ and ‘categories’ lists, and run the script. It produces a list of posts sorted by creation time:

Now you can quickly scan the list for posts to read or upvote, then click their links to open them in the browser.

That’s it for now! Hope this might be of some use.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you for the script! I hope it will be included in the UI.

@dantheman mentioned that the feed will be functional soon, probably next week