In this series I will share my experience about building a Steemit bot with the python library. I'll post my functions used as a basis for my bot and try to explain it.
I personally use Windows and it was quite challenging to install the library but this tutorial helped me a lot.
We need to import the library and initialize the Steem class.
In order to understand the function we need to know how a post looks like on the Steem Blockchain.
In my knowledge a post isn't labeled "post" but with a two tricks we can identify one:
We obviously need to provide a username in form of a string to execute the function properly.
None, the user hasn't posted something yet or we didn't find a post because we looked at too few entries in the "account history" of the user.--> to fix some errors with the limit I added:
The error will simply get ignored.
But now you won't get an error if your username is wrong. Delete these extra lines if you want the error to occur.