steemit / steem-python

The official Python (3) library for the Steem Blockchain.
https://steem.io
MIT License
153 stars 98 forks source link

change #145

Closed dzyk closed 6 years ago

dzyk commented 6 years ago

can i take all posts? s = steem b = s.blog.Blog('mgu', steemd_instance=client) po = b.all() print (po) for i in po: print (i)

print only <generator object Blog.all at 0x7fa537e60a98> ...

Netherdrake commented 6 years ago

Blog is lazy by default, and returns a generator. To read all posts, you could do this:

for post in Blog('mgu'):
    print(post)