A Steem feed: filtering posts by author and category

in #steem-tools8 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.

Sort:  

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

Hi! This post has a Flesch-Kincaid grade level of 10.3 and reading ease of 75%. This puts the writing level on par with Michael Crichton and Mitt Romney.

Coin Marketplace

STEEM 0.18
TRX 0.13
JST 0.029
BTC 57684.56
ETH 3120.56
USDT 1.00
SBD 2.33