<img src="https://steemit-production-imageproxy-thumbnail.s3.amazonaws.com/U5drxhdemuq4r4ezSCFC6xhAknvQspB_1680x8400"> #### Resteem *** Resteem is defined inside a "custom_json" operation. It doesn't have a separated operation type. It's basically counterpart of *"retweet"*, the concept you may be familiar with Twitter. Condenser interface (Steemit) or other interfaces doesn't show that information that who resteemed your posts. Let's find out who supports our posts by resteeming. #### Main Flow of the script - Go through the account history - Filter main post creations - Check resteemers and add them to a counter - Get an output with cool visualization Since going through the history takes a lot of time, I have only analyzed my account's last 30 days. If you care to wait, you can just remove that check and get all history. #### Script *** ``` from steem import Steem from steem.account import Account from steem.post import Post from collections import Counter import steembase import pygal def resteemers(steemd, username, output_path): processed_posts = set() resteemer_list = list() resteemed_posts = list() acc = Account(username, steemd_instance=steemd) for comment in acc.history_reverse(filter_by=["comment"]): # don't process updates post_identifier = "@%s/%s" % ( comment.get("author"), comment.get("permlink")) if post_identifier in processed_posts: continue processed_posts.add(post_identifier) # don't process resteems of the author if comment.get("author") != username: continue try: post = Post(comment, steemd_instance=steemd) except steembase.exceptions.PostDoesNotExist: continue if post.time_elapsed().total_seconds() > 2592000: # 1 month break # don't process comments if not post.is_main_post(): continue resteemers = steemd.get_reblogged_by( post.get("author"), post.get("permlink")) resteemers.remove(username) if len(resteemers) == 0: continue for resteemer in resteemers: resteemer_list.append(resteemer) resteemed_posts.append(post.identifier) most_resteemed_posts = Counter(resteemed_posts).most_common(5) most_resteemers = Counter(resteemer_list).most_common(5) line_chart = pygal.Bar() line_chart.title = 'Most Resteemed Posts (%s)' % username for item in most_resteemed_posts: line_chart.add(item[0], item[1]) line_chart.render_to_file("%s/most_resteemed.svg" % output_path) pie = pygal.Pie() pie.title = 'Resteemers of %s' % username for item in most_resteemers: pie.add(item[0], item[1]) pie.render_to_file("%s/resteemers.svg" % output_path) def main(): s = Steem(nodes=["https://api.steemit.com"]) resteemers(s, "emrebeyler", "/tmp/") if __name__ == '__main__': main() ``` See the script nicely formatted at [Github Gists](https://gist.github.com/emre/c2f3a0552866a2f877fa0a6588bd5ac0). #### Example Outputs *** **1. Most resteemed posts**  **2. Usual resteemers**  #### Requirements *** You need to have **steem-python** and **pygal** libraries installed in your local python environment. Have fun.
author | emrebeyler |
---|---|
permlink | steem-python-tips-4-see-who-resteems-your-posts |
category | steemdev |
json_metadata | {"community":"busy","app":"busy/2.4.0","format":"markdown","image":["https://steemitimages.com/0x0/https://steemit-production-imageproxy-thumbnail.s3.amazonaws.com/U5drxhdemuq4r4ezSCFC6xhAknvQspB_1680x8400","https://steemitimages.com/0x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1520320367/frbxiyuiaxwhoclsry3z.png","https://steemitimages.com/0x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1520320393/kxvw21sqq9klgsmebtp8.png"],"links":["https://gist.github.com/emre/c2f3a0552866a2f877fa0a6588bd5ac0"],"tags":["steemdev","python","programming","sndbox","busy"]} |
created | 2018-03-06 07:15:42 |
last_update | 2018-03-06 07:15:42 |
depth | 0 |
children | 10 |
last_payout | 2018-03-13 07:15:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 27.442 HBD |
curator_payout_value | 3.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,559 |
author_reputation | 448,535,049,068,622 |
root_title | "steem-python tips #4 - See who resteems your posts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 42,562,131 |
net_rshares | 7,479,881,223,316 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
olegn | 0 | 2,211,939,978 | 100% | ||
lgm-1 | 0 | 999,533,376 | 12% | ||
mindfreak | 0 | 12,224,685,496 | 6% | ||
sambillingham | 0 | 75,679,949,408 | 51% | ||
hansikhouse | 0 | 55,217,723,466 | 6% | ||
voronoi | 0 | 108,783,938,293 | 12% | ||
busy.org | 0 | 44,064,339,782 | 0.06% | ||
teamhumble | 0 | 2,949,499,838 | 6% | ||
alfarisi | 0 | 87,313,818 | 12% | ||
ripperone | 0 | 792,492,661,039 | 17% | ||
heriafriadiaka | 0 | 156,626,030 | 12% | ||
damla | 0 | 4,337,453,443 | 20% | ||
erb | 0 | 5,701,565,832 | 12% | ||
oendertuerk | 0 | 34,581,936,480 | 20% | ||
luvabi | 0 | 2,334,285,240 | 6% | ||
andybets | 0 | 6,072,046,591 | 100% | ||
world-travel-pro | 0 | 531,814,849 | 0.6% | ||
coquiunlimited | 0 | 183,731,493 | 1.2% | ||
lastozgur | 0 | 3,225,648,974 | 100% | ||
sndbox | 0 | 2,289,019,493,884 | 12% | ||
howo | 0 | 8,988,103,220 | 8% | ||
leotrap | 0 | 2,974,376,754 | 6% | ||
nettybot | 0 | 10,348,893,802 | 20% | ||
siklosi | 0 | 612,791,675 | 100% | ||
matrixonsteem | 0 | 598,271,098 | 100% | ||
somethingburger | 0 | 863,249,984 | 12% | ||
steemliberator | 0 | 742,519,321 | 100% | ||
msp3k | 0 | 5,173,016,984 | 100% | ||
witnessstats | 0 | 597,808,175 | 100% | ||
ponpase | 0 | 126,442,232 | 6% | ||
sizranoy | 0 | 566,837,936 | 100% | ||
boontjie | 0 | 15,781,548,072 | 100% | ||
crokkon | 0 | 11,170,747,720 | 50% | ||
sbdraffle | 0 | 461,551,468 | 75% | ||
osm0sis | 0 | 697,528,353 | 1% | ||
espoem | 0 | 26,369,378,209 | 50% | ||
playitforward | 0 | 3,109,020,974 | 3.6% | ||
r2steem2 | 0 | 602,073,834 | 100% | ||
steemcreate | 0 | 625,586,449 | 100% | ||
omersurer | 0 | 1,854,704,043 | 5% | ||
revan746 | 0 | 1,235,921,789 | 3% | ||
favcau | 0 | 31,679,573,304 | 100% | ||
emrebeyler | 0 | 764,336,878,991 | 100% | ||
zoltarian | 0 | 60,545,430,221 | 100% | ||
turbot | 0 | 536,761,989 | 93% | ||
dangerux | 0 | 261,633,002 | 40% | ||
ethemkibar | 0 | 1,071,157,644 | 5% | ||
berkaytekinsen | 0 | 205,569,506 | 12% | ||
evilest-fiend | 0 | 1,218,049,094 | 50% | ||
thashadowbrokers | 0 | 82,649,225 | 100% | ||
qustodian | 0 | 117,079,449,638 | 40.59% | ||
gokos | 0 | 437,518,385 | 71% | ||
muhammetcan | 0 | 473,796,400 | 77% | ||
intelligencer | 0 | 4,264,148,738 | 100% | ||
mineopoly | 0 | 76,340,456 | 0.06% | ||
brotato | 0 | 361,121,421 | 100% | ||
pizaz | 0 | 348,371,398 | 100% | ||
triplethreat | 0 | 80,138,405 | 100% | ||
dootdoot | 0 | 54,164,962 | 100% | ||
wewt | 0 | 5,736,623,276 | 20% | ||
conflaxus | 0 | 80,098,389 | 100% | ||
tittilatey | 0 | 80,165,030 | 100% | ||
cajun | 0 | 348,964,298 | 100% | ||
coonass | 0 | 348,607,907 | 100% | ||
squirrelnuts | 0 | 354,461,377 | 100% | ||
ewq | 0 | 1,470,328,705 | 6% | ||
steemdevs | 0 | 342,197,423 | 100% | ||
jeezy | 0 | 80,064,165 | 100% | ||
test.with.dots | 0 | 82,529,299 | 100% | ||
pi-pi | 0 | 78,794,263 | 100% | ||
listentosteem | 0 | 80,021,107 | 100% | ||
gravy | 0 | 78,766,618 | 100% | ||
sauronbey | 0 | 389,073,451 | 20% | ||
yucealiosman | 0 | 522,631,000 | 85% | ||
onursa | 0 | 571,819,800 | 93% | ||
osmania | 0 | 385,194,531 | 100% | ||
selamtux | 0 | 589,920,000 | 96% | ||
ucmuharfli | 0 | 466,351,538 | 16% | ||
embesilikat | 0 | 57,272,561 | 10% | ||
eshapunver | 0 | 117,675,807 | 20% | ||
maapeldek | 0 | 569,010,607 | 100% | ||
pars11 | 0 | 3,858,834,572 | 100% | ||
cutemachine | 0 | 15,163,857,062 | 100% | ||
ahmetmertugrul | 0 | 569,247,419 | 100% | ||
samedb | 0 | 517,212,229 | 84% | ||
steem-rocks | 0 | 457,686,138 | 74% | ||
archual | 0 | 421,385,570 | 100% | ||
longming | 0 | 379,901,053 | 100% | ||
patrici | 0 | 122,992,833 | 100% | ||
cement3 | 0 | 511,663,456 | 100% | ||
properfraction | 0 | 610,540,368 | 100% | ||
tolgahanuzun | 0 | 3,278,232,147 | 100% | ||
hakancelik | 0 | 2,752,917,615 | 100% | ||
rjrudillas14 | 0 | 52,195,232 | 12% | ||
privacybydesign | 0 | 612,956,503 | 100% | ||
ogergami | 0 | 614,461,540 | 100% | ||
firster78 | 0 | 171,616,379 | 28% | ||
longtimenosee | 0 | 376,887,242 | 100% | ||
blockmountain | 0 | 167,615,048 | 6% | ||
feronio | 0 | 2,125,508,798 | 100% | ||
foysalahmedtopu | 0 | 363,056,272 | 100% | ||
jumbot | 0 | 17,612,071,314 | 40% | ||
esme-svh | 0 | 480,864,772 | 100% | ||
freemessage | 0 | 58,376,557 | 100% | ||
xeniaioannou | 0 | 520,624,413 | 100% | ||
testorz | 0 | 400,333,145 | 89% | ||
promobot | 0 | 2,896,098,474,586 | 23.05% | ||
steemlore | 0 | 203,315,710 | 100% | ||
pokeparadox | 0 | 438,195,979 | 100% | ||
ody18 | 0 | 517,768,371 | 100% | ||
crpytoanalyzer | 0 | 122,547,660 | 100% |
Thank you so much dude. It gave me lot of information. You are doing a great work. These accurate stats. Your blog is worthy. Keep it up
author | aniket26 | ||||||
---|---|---|---|---|---|---|---|
permlink | re-emrebeyler-201836t13220565z | ||||||
category | steemdev | ||||||
json_metadata | {"tags":["steemdev","python","programming","sndbox","busy"],"app":"esteem/1.5.1","format":"markdown+html","community":"esteem"} | ||||||
created | 2018-03-06 07:32:21 | ||||||
last_update | 2018-03-06 07:32:21 | ||||||
depth | 1 | ||||||
children | 0 | ||||||
last_payout | 2018-03-13 07:32:21 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 HBD | ||||||
curator_payout_value | 0.000 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 136 | ||||||
author_reputation | 101,188,846,626 | ||||||
root_title | "steem-python tips #4 - See who resteems your posts" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 42,564,702 | ||||||
net_rshares | 0 |
hey. bu çok faydalı bir paylaşım. sevdim
author | artizm |
---|---|
permlink | re-emrebeyler-steem-python-tips-4-see-who-resteems-your-posts-20180309t204418347z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-03-09 20:44:18 |
last_update | 2018-03-09 20:44:18 |
depth | 1 |
children | 0 |
last_payout | 2018-03-16 20:44:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 41 |
author_reputation | 28,441,917,321,225 |
root_title | "steem-python tips #4 - See who resteems your posts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 43,395,219 |
net_rshares | 0 |
Just tried it now. Works great. Thanks!!! https://s9.postimg.org/sb0ji5hen/image.jpg
author | siklosi |
---|---|
permlink | re-emrebeyler-steem-python-tips-4-see-who-resteems-your-posts-20180306t095038923z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"image":["https://s9.postimg.org/sb0ji5hen/image.jpg"],"app":"steemit/0.1"} |
created | 2018-03-06 09:50:39 |
last_update | 2018-03-06 09:50:39 |
depth | 1 |
children | 1 |
last_payout | 2018-03-13 09:50:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.064 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 84 |
author_reputation | 1,174,722,426,112 |
root_title | "steem-python tips #4 - See who resteems your posts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 42,587,485 |
net_rshares | 16,437,528,706 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
emrebeyler | 0 | 16,437,528,706 | 2% |
looks cool :)
author | emrebeyler |
---|---|
permlink | re-siklosi-re-emrebeyler-steem-python-tips-4-see-who-resteems-your-posts-20180306t095309344z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-03-06 09:53:09 |
last_update | 2018-03-06 09:53:09 |
depth | 2 |
children | 0 |
last_payout | 2018-03-13 09:53:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 13 |
author_reputation | 448,535,049,068,622 |
root_title | "steem-python tips #4 - See who resteems your posts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 42,587,906 |
net_rshares | 523,789,615 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gokos | 0 | 523,789,615 | 100% |
Ugh, another new concept to me. What does it mean to resteem? To post another person's content as your own - or with their names on it? And is it a good thing when your content is resteemed?
author | sindore |
---|---|
permlink | re-emrebeyler-steem-python-tips-4-see-who-resteems-your-posts-20180306t074503586z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-03-06 07:46:03 |
last_update | 2018-03-06 07:46:03 |
depth | 1 |
children | 2 |
last_payout | 2018-03-13 07:46:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.024 HBD |
curator_payout_value | 0.007 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 191 |
author_reputation | 97,983,227,980 |
root_title | "steem-python tips #4 - See who resteems your posts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 42,566,862 |
net_rshares | 8,218,764,353 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
emrebeyler | 0 | 8,218,764,353 | 1% |
> To post another person's content as your own - or with their names on it? Yes. > And is it a good thing when your content is resteemed? Also, yes. Your content will gain more visibility since it will be also featured on the resteemer's feed.
author | emrebeyler |
---|---|
permlink | re-sindore-re-emrebeyler-steem-python-tips-4-see-who-resteems-your-posts-20180306t074844260z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-03-06 07:48:45 |
last_update | 2018-03-06 07:48:45 |
depth | 2 |
children | 1 |
last_payout | 2018-03-13 07:48:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 247 |
author_reputation | 448,535,049,068,622 |
root_title | "steem-python tips #4 - See who resteems your posts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 42,567,321 |
net_rshares | 0 |
I see. Thank you for clearing this up for me :)
author | sindore |
---|---|
permlink | re-emrebeyler-re-sindore-re-emrebeyler-steem-python-tips-4-see-who-resteems-your-posts-20180306t094216257z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-03-06 09:43:15 |
last_update | 2018-03-06 09:43:15 |
depth | 3 |
children | 0 |
last_payout | 2018-03-13 09:43:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 47 |
author_reputation | 97,983,227,980 |
root_title | "steem-python tips #4 - See who resteems your posts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 42,586,251 |
net_rshares | 0 |
So what is the benefit of reposting to the person who reposts?
author | xeniaioannou | ||||||
---|---|---|---|---|---|---|---|
permlink | re-emrebeyler-201836t183641161z | ||||||
category | steemdev | ||||||
json_metadata | {"tags":["steemdev","python","programming","sndbox","busy"],"app":"esteem/1.5.1","format":"markdown+html","community":"esteem"} | ||||||
created | 2018-03-06 08:06:45 | ||||||
last_update | 2018-03-06 08:06:45 | ||||||
depth | 1 | ||||||
children | 2 | ||||||
last_payout | 2018-03-13 08:06:45 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.021 HBD | ||||||
curator_payout_value | 0.007 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 62 | ||||||
author_reputation | 336,859,675,984 | ||||||
root_title | "steem-python tips #4 - See who resteems your posts" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 42,570,309 | ||||||
net_rshares | 8,218,764,353 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
emrebeyler | 0 | 8,218,764,353 | 1% |
For the reposter, there is no benefit. You repost and the content reaches a wider audience.
author | emrebeyler |
---|---|
permlink | re-xeniaioannou-re-emrebeyler-201836t183641161z-20180306t080902389z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-03-06 08:09:03 |
last_update | 2018-03-06 08:09:03 |
depth | 2 |
children | 1 |
last_payout | 2018-03-13 08:09:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 91 |
author_reputation | 448,535,049,068,622 |
root_title | "steem-python tips #4 - See who resteems your posts" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 42,570,664 |
net_rshares | 505,302,923 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gokos | 0 | 505,302,923 | 100% |
Thanks
author | xeniaioannou | ||||||
---|---|---|---|---|---|---|---|
permlink | re-emrebeyler-201836t194358200z | ||||||
category | steemdev | ||||||
json_metadata | {"tags":"steemdev","app":"esteem/1.5.1","format":"markdown+html","community":"esteem"} | ||||||
created | 2018-03-06 09:14:03 | ||||||
last_update | 2018-03-06 09:14:03 | ||||||
depth | 3 | ||||||
children | 0 | ||||||
last_payout | 2018-03-13 09:14:03 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 HBD | ||||||
curator_payout_value | 0.000 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 6 | ||||||
author_reputation | 336,859,675,984 | ||||||
root_title | "steem-python tips #4 - See who resteems your posts" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 42,581,550 | ||||||
net_rshares | 0 |