Skip to content

Instantly share code, notes, and snippets.

@bruce-forks
bruce-forks / steempy-19-challenge.py
Created February 1, 2018 05:40
My solution to the steem-python challenge #19
from steem.blockchain import Blockchain
import sys
import threading
import math
class BlockThread (threading.Thread):
def __init__(self, threadIndex, start_block, end_block, total_blocks, counter, blockchain, stats):
threading.Thread.__init__(self)
self.threadIndex = threadIndex
self.start_block = start_block
@bruce-forks
bruce-forks / author-rewards.py
Created February 6, 2018 03:35
My solution to the steem-python challenge #20
from steem import Steem
from steem.account import Account
from steem.post import Post
from steem.amount import Amount
from dateutil.parser import parse
from datetime import datetime, timedelta
steem = Steem()
account = "steempytutorials"