Sort:  

You need an python environment and the python-steemlib from @xeroc.
For installation you can read: https://github.com/xeroc/python-steemlib

Than you simply create the file with my code and run it like:
(Ofcause you need to change the "username"and the "wif" key)

python3 fileName.py

Thanks for posting this! I'm replying as a bookmark.

SteemNodeRPC look like not able to be imported ... Traceback (most recent call last):
File "./post_test.py", line 2, in
from steemapi.steemnoderpc import SteemNodeRPC
ImportError: No module named steemapi.steemnoderpc
ubuntu@ubuntu:~/steem/extract$

You need to install the library.
"pip3 install steem"

Installation guide: https://github.com/xeroc/python-steemlib

You need to use python3

Try

  1. apt-get install python3-pip
  2. pip3 install --upgrade pip
  3. pip3 install steem

hi, im getting same error, using python3 on ubuntu