create account

Use Python to Discover Your Biggest Fans by makerhacks

View this thread on: hive.blogpeakd.comecency.com
· @makerhacks ·
$20.75
Use Python to Discover Your Biggest Fans
![image.png](https://files.peakd.com/file/peakd-hive/makerhacks/23tbPQGP8PmxgTvxF6mFpbCDhmAJXLVN67ZGajLwMmvWXxkUG5fkp2HTGMBcevQfxGAdn.png)
### Who is YOUR community?

This is not hypothetical if you want to grow a social account, a Hive presence, or a business. 

Your community is a subset, so you can't say "Hive", "bloggers", or even "weekend bloggers over 50 years old" because that is your niche that you try to address, but they are not YOURs.

## Judging Your Fans

On Hive we can quantify this in a couple of ways. The first would be who votes for you the most.

Now, of course, we had a Steem/Hive schism so that if we were being really correct about this I would filter out Steem from Hive, but for the sake of this exercise let's pretend that never happened! 

## Counting Votes

Here are my top 20 voters and how many votes they have made.

Yep, it is pretty clear I owe @themarkymark a case of beer or twenty.


```
themarkymark 422
rawpride 238
tpvoter1 220
buildawhale 217
upmyvote 211
share4every1 208
taukproung85 200
dmxmaster 186
sbi3 185
ipromote 171
bssman 155
abh12345.stem 149
enforcer48 144
mytechtrail 140
drmake 126
pbock 118
recoveryinc 109
yggdrasil.laguna 105
stemcur 89
stemisaria 87
```

How did I get this information? Via the magic of [HiveSQL which I wrote a tutorial about previously](https://peakd.com/python/@makerhacks/get-the-latest-blog-articles-from-hive-using-hivesql-and-python).

This allows us to very quickly not just list all the votes on our blog, but also count them up, group them AND order the result!

```
select top(20) voter, count(voter) as votes
    from TxVotes where author='makerhacks' 
    group by voter order by votes desc
```

We translate this into:
* Get only the top 20 results.
* Return the voter name and the number of times that person voted as 'votes'.
* From vote transactions.
* Where they were voting on my post.
* Group by voter name.
* List with the biggest first.

Votes might be the most financially rewarding, but not be the best way to measure who is your biggest fan, though. What else is there?

Let's look at the data ...


![Screen Shot 2022-01-17 at 4.55.20 PM.png](https://files.peakd.com/file/peakd-hive/makerhacks/Eos79rLYozcq2RZvo49pSn7xXFeiTAAJQDBmVhnZAks71L8maW4hNozJGUUzP2U9LU9.png)

Comments, that looks promising!

## Top Commenters

Gosh darn it there is Marky again. I am starting to think everyone here is two Marks in a trenchcoat ...


### TOP COMMENTERS
@themarkymark 104
@hivebuzz 53
@pbock 33
@steemmakers 33
@steemitboard 32
@mytechtrail 31
@enforcer48 29
@geekpowered 27
@drmake 26
@turkishcrew 26
@lextenebris 24
@postpromoter 24
@leaky20 22
@boucaron 21
@buildawhale 20
@ipromote 18
@netscape101 17
@steampunkkaja 15
@captainglondo 14
@chefbgob 14


In this case, the SQL is very much the same just with field names and tables changed:

```
select top(20) author, count(author) as comment_count 
from comments where parent_author='makerhacks' and not author='makerhacks' 
group by author order by comment_count desc;
```

We want all the comments where they were replying to something I wrote but the comment was not by me.


## Reblogs?

On your account, you might look at who reblogs you the most, there is data for that. I thought I very rarely get reblogged but it seems there have been a lot more than I remember!

```
select top(10) account, count(account) as reblogged from reblogs where author='makerhacks' group by account order by reblogged desc;
```

## Who Doesn't Like Me?

You could go the other way and see who has you muted ...

```
select * from mutes where muted='makerhacks';
```

Only 4 people have muted me? I must up my game! Hmm that means I can say what I like about them and they won't know, right? ;)

@marshmellowman
@thepholosopher
@tonygreene113
@mhsiemaszko

## Over to You

### What other interesting data can you find out? Please share with me in the comments!
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 37 others
properties (23)
authormakerhacks
permlinkuse-python-to-discover-your-biggest-fans
categorypython
json_metadata"{"app":"peakd/2021.12.1","format":"markdown","description":"Using Python to answer random questions is like a super power","tags":["python","hivedev","hive","programming","stemgeeks"],"users":["themarkymark","makerhacks","hivebuzz","pbock","steemmakers","steemitboard","mytechtrail","enforcer48","geekpowered","drmake"],"image":["https://files.peakd.com/file/peakd-hive/makerhacks/23tbPQGP8PmxgTvxF6mFpbCDhmAJXLVN67ZGajLwMmvWXxkUG5fkp2HTGMBcevQfxGAdn.png","https://files.peakd.com/file/peakd-hive/makerhacks/Eos79rLYozcq2RZvo49pSn7xXFeiTAAJQDBmVhnZAks71L8maW4hNozJGUUzP2U9LU9.png"]}"
created2022-01-18 00:19:12
last_update2022-01-18 00:19:12
depth0
children23
last_payout2022-01-25 00:19:12
cashout_time1969-12-31 23:59:59
total_payout_value10.393 HBD
curator_payout_value10.357 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,899
author_reputation104,799,108,692,493
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id109,588,334
net_rshares19,398,961,024,827
author_curate_reward""
vote details (101)
@acidyo ·
$0.20
You may want to post into specific communities depending on your posts, may get you some more visibility and curation from folk interested in the subject and have an easier time finding you. 

https://peakd.com/c/hive-169321/created

for instance^
πŸ‘  
properties (23)
authoracidyo
permlinkre-makerhacks-r5x98u
categorypython
json_metadata{"tags":["python"],"app":"peakd/2021.12.1"}
created2022-01-18 20:07:42
last_update2022-01-18 20:07:42
depth1
children4
last_payout2022-01-25 20:07:42
cashout_time1969-12-31 23:59:59
total_payout_value0.100 HBD
curator_payout_value0.099 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length247
author_reputation2,616,694,627,565,910
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,616,339
net_rshares188,357,288,280
author_curate_reward""
vote details (1)
@makerhacks ·
$0.25
I am always a bit nervous around communities, especially because I post every day - bit shy about being seen as over-posting or spamming 
πŸ‘  ,
properties (23)
authormakerhacks
permlinkre-acidyo-r5x9d0
categorypython
json_metadata{"tags":["python"],"app":"peakd/2021.12.1"}
created2022-01-18 20:10:12
last_update2022-01-18 20:10:12
depth2
children3
last_payout2022-01-25 20:10:12
cashout_time1969-12-31 23:59:59
total_payout_value0.123 HBD
curator_payout_value0.122 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length137
author_reputation104,799,108,692,493
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,616,417
net_rshares232,862,579,248
author_curate_reward""
vote details (2)
@acidyo ·
$0.20
Eh nothing to worry about, if they think that they often give you a warning first. In general it's just better to make use of communities than not as you may miss out on a lot of new followers by not posting there, especially followers that are interested in what you post about which is even better, else the only way they could find you is through reblogs or other various small and low odd ways. 
πŸ‘  
properties (23)
authoracidyo
permlinkre-makerhacks-r5x9gv
categorypython
json_metadata{"tags":["python"],"app":"peakd/2021.12.1"}
created2022-01-18 20:12:30
last_update2022-01-18 20:12:30
depth3
children2
last_payout2022-01-25 20:12:30
cashout_time1969-12-31 23:59:59
total_payout_value0.098 HBD
curator_payout_value0.097 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length399
author_reputation2,616,694,627,565,910
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,616,495
net_rshares184,893,127,610
author_curate_reward""
vote details (1)
@enforcer48 ·
$0.23
I would like to pretend downvotes will raise your mute count significantly, but not that many people mute me either. Lol
πŸ‘  ,
properties (23)
authorenforcer48
permlinkre-makerhacks-r5vqec
categorypython
json_metadata{"tags":["python"],"app":"peakd/2021.12.1"}
created2022-01-18 00:23:03
last_update2022-01-18 00:23:03
depth1
children5
last_payout2022-01-25 00:23:03
cashout_time1969-12-31 23:59:59
total_payout_value0.113 HBD
curator_payout_value0.113 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length120
author_reputation404,953,836,508,112
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,588,417
net_rshares213,881,848,589
author_curate_reward""
vote details (2)
@makerhacks ·
Hmm downvotes is a good one

```
select voter, count(voter) as downvotes from txvotes where weight < 1 and author='makerhacks' group by voter order by downvotes desc;
```

@goidt, 'downvotes': 3
@matt-a, 'downvotes': 2
@sachincool, 'downvotes': 2
@stem.curate, 'downvotes': 2 
@thevote, 'downvotes': 2
@timm, 'downvotes': 1
@tonygreene113, 'downvotes': 1

Unsurprisingly Tony appears on both this and the mute list ;)
πŸ‘  ,
properties (23)
authormakerhacks
permlinkre-enforcer48-r5vqpo
categorypython
json_metadata{"tags":["python"],"app":"peakd/2021.12.1"}
created2022-01-18 00:29:48
last_update2022-01-18 00:29:48
depth2
children4
last_payout2022-01-25 00:29:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length417
author_reputation104,799,108,692,493
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,588,543
net_rshares18,802,240,730
author_curate_reward""
vote details (2)
@tonygreene113 ·
Yea...one downvote over nearly 5 years should be a good ratio for you...lol
properties (22)
authortonygreene113
permlinkre-makerhacks-2022117t193536717z
categorypython
json_metadata{"tags":["python"],"app":"ecency/3.0.23-mobile","format":"markdown+html"}
created2022-01-18 00:35:36
last_update2022-01-18 00:35:36
depth3
children3
last_payout2022-01-25 00:35:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length75
author_reputation22,926,881,888,525
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,588,671
net_rshares0
@frittro ·
$0.19
Wow, this is really cool! I remember playing around with [SteemReports](https://steemit.com/steemit/@steemreports/steemreports-enhanced-votes-network-graph) back in 2018. I even mentioned it in #theterminal Discord server recently, asking if there was something comparable here on HIVE. What you have posted here is the closest to the functionality of the old SteemReports network influence map that I've seen here yet.

![180808_0041_votes_graph_enhanced.png](https://images.ecency.com/DQmX2fmZ9mXTfLKpNrBKNfrJQ8uKEyHJZgrxv9pyVUC66b3/180808_0041_votes_graph_enhanced.png)

πŸ‘  
properties (23)
authorfrittro
permlinkre-makerhacks-2022119t202734788z
categorypython
json_metadata{"tags":["python","hivedev","hive","programming","stemgeeks"],"app":"ecency/3.0.20-vision","format":"markdown+html"}
created2022-01-19 07:27:36
last_update2022-01-19 07:27:36
depth1
children0
last_payout2022-01-26 07:27:36
cashout_time1969-12-31 23:59:59
total_payout_value0.093 HBD
curator_payout_value0.092 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length574
author_reputation1,812,210,144,779
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,635,000
net_rshares176,710,807,123
author_curate_reward""
vote details (1)
@lextenebris ·
$0.23
This really gets down to one of the core problems of understanding social media and self-promotion – deciding what "good" means. It can and should vary for pretty much everyone, which is an absolute fact which is overlooked most of the time when you talk about various metrics.

For me, personally, comment engagement is one of the best metrics out there. Not just "number of comments left," but "number of threads in which there is multiple posts by a single commentor." Anyone can leave one comment but very few people engage in conversations; those of the people who either hate you enough or love you enough to really talk about what you're doing.

But that's just my metric.
πŸ‘  
properties (23)
authorlextenebris
permlinkre-makerhacks-r5vsre
categorypython
json_metadata{"tags":["python"],"app":"peakd/2021.12.1"}
created2022-01-18 01:14:03
last_update2022-01-18 01:14:03
depth1
children1
last_payout2022-01-25 01:14:03
cashout_time1969-12-31 23:59:59
total_payout_value0.112 HBD
curator_payout_value0.113 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length679
author_reputation19,331,909,683,524
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,589,440
net_rshares211,594,338,354
author_curate_reward""
vote details (1)
@makerhacks ·
Good point … It’s interesting how often comments on Hive seem to be just for visibility, but it’s even worse in DeSo which is supposed to be just for conversation - to the point replies seem to be actively hidden in the main apps.

I keep coming back to the idea of making a new UI for Hive myself that encouraged conversation but I fear I’d be the only user. 
πŸ‘  
properties (23)
authormakerhacks
permlinkre-lextenebris-r5vt4o
categorypython
json_metadata{"tags":["python"],"app":"peakd/2021.12.1"}
created2022-01-18 01:22:00
last_update2022-01-18 01:22:00
depth2
children0
last_payout2022-01-25 01:22:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length360
author_reputation104,799,108,692,493
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,589,568
net_rshares10,456,710,322
author_curate_reward""
vote details (1)
@nicklewis ·
$0.07
I’d heard of Hive SQL and this gives it some greater context. I’ll try this out but I’m still just a small account right now. 
πŸ‘  ,
properties (23)
authornicklewis
permlinkre-makerhacks-2022128t721123z
categorypython
json_metadata{"tags":["python","hivedev","hive","programming","stemgeeks"],"app":"ecency/3.0.25-mobile","format":"markdown+html"}
created2022-01-28 07:02:09
last_update2022-01-28 07:02:09
depth1
children0
last_payout2022-02-04 07:02:09
cashout_time1969-12-31 23:59:59
total_payout_value0.036 HBD
curator_payout_value0.036 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length126
author_reputation58,011,212,118,689
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,920,445
net_rshares58,951,274,960
author_curate_reward""
vote details (2)
@steampunkkaja ·
$0.24
I can't help but wonder what you did to piss off @thepholosopher, given the other two people on her mute list.  I could understand if it were the other way round, all things considered.  The same goes for @marshmellowman, since you're the only person he's muted, though I don't follow him, so I don't really know what he's about.  The other two have quite long lists of muted people, so that's not something you should take personally.

I may have to find out who's muted me!  I have a feeling I already know *one* name I'm going to find on that list!
πŸ‘  ,
properties (23)
authorsteampunkkaja
permlinkr5x533
categorypython
json_metadata{"users":["thepholosopher","marshmellowman"],"app":"hiveblog/0.1"}
created2022-01-18 18:37:57
last_update2022-01-18 18:37:57
depth1
children6
last_payout2022-01-25 18:37:57
cashout_time1969-12-31 23:59:59
total_payout_value0.122 HBD
curator_payout_value0.121 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length551
author_reputation43,589,772,647,571
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id109,613,519
net_rshares230,702,280,083
author_curate_reward""
vote details (2)
@makerhacks ·
Could be any number of things and could be nothing.

Someone accused me of being a marxist on twitter recently even though my profile clearly says my day job is as a marketing director. 

I've been accused of trying to take folks' guns away in a thread containing a video of me at the gun range. 

People see what they want to see :)

I have been quite open about the fact that I wear an N95 mask and am vaccinated, due to the fact I have a bunch of vulnerable people I can't risk. That and my dislike for Q/45/flat-earth/incels/white nationalists/etc means I piss off a lot of people just as a regular daily thing and there is nothing I can do about that.

Probably the most hate I got was when I said I didn't see a problem with female space marines, though. 
properties (22)
authormakerhacks
permlinkre-steampunkkaja-r5x5v7
categorypython
json_metadata{"tags":["python"],"app":"peakd/2021.12.1"}
created2022-01-18 18:54:42
last_update2022-01-18 18:54:42
depth2
children4
last_payout2022-01-25 18:54:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length761
author_reputation104,799,108,692,493
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,613,894
net_rshares0
@steampunkkaja ·
$0.21
Oh dear, you don't have a problem with female space marines?  Neither do I, even though I'm willing to acknowledge that goes against the lore... well, the current lore, anyway, since 40K's fluff is wildly inconsistent.  I may have to watch myself, but then, I'm Necron player, so why should I care?

I can certainly sympathise with the idea that people see what they want to.  False dichotomies make it easier to dehumanise the "other."  Communists see me as a science-denying creationist, and creationists see me as a godless communist, even though neither of those things are true (well, the "godless" part is true).  It gets wearisome after a while.
πŸ‘  
properties (23)
authorsteampunkkaja
permlinkre-makerhacks-r5x8ox
categorypython
json_metadata{"tags":["python"],"app":"peakd/2021.12.1"}
created2022-01-18 19:55:51
last_update2022-01-18 19:55:51
depth3
children3
last_payout2022-01-25 19:55:51
cashout_time1969-12-31 23:59:59
total_payout_value0.103 HBD
curator_payout_value0.103 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length652
author_reputation43,589,772,647,571
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,616,071
net_rshares195,950,156,067
author_curate_reward""
vote details (1)
@marshmellowman ·
It was strictly a mute back....not sure what i did for @makerhacks to mute me...maybe after i went an joined him for being in the same Canada room and liking and fallowing him based on a room he was in, commenting and voting his work....   I see value to what he is bring to the community as displayed by this post. I may just un-mute him.  Or perhaps a finger slipped and a button was hit and it was never meant to go that way...i do not know what happened on his end. 
Ill lat that stand there as i read down at more comments.....umm alright so @makerhacks says "That and my dislike for Q/45/flat-earth/incels/white nationalists/etc means I piss off a lot of people just as a regular daily thing and there is nothing I can do about that."   Wow, so you know all about me and what i believe, i am not sure what you even mean by half of your list (45/incels/ ...) and i guess you know more about what i do not talk about then even i do. ....humm right alright so perhaps you should look the other way and not click on the memehive room....that would be personal responsibility. Something it seem you want to take way from other by wearing your mask....right check good boy.  Ill un-mute you now because i can see value in differing of opinions and I will still learn from those that are supreme stuck in their ways not willing to hear others opinions after clicking on the page to open waiting to load read scroll read scroll and then get offended at the other.   What a wonderful world. 
properties (22)
authormarshmellowman
permlinkre-steampunkkaja-2022118t14172209z
categorypython
json_metadata{"tags":["ecency"],"app":"ecency/3.0.20-vision","format":"markdown+html"}
created2022-01-18 19:17:15
last_update2022-01-18 19:17:15
depth2
children0
last_payout2022-01-25 19:17:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,488
author_reputation6,398,009,699,622
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,614,430
net_rshares0
@themagus ·
$0.06
Great post .... I gotta check this out some time !! Judst not now ... I busy ranting on my Friday music blog {sigh}
πŸ‘  
properties (23)
authorthemagus
permlinkre-makerhacks-r6eynx
categorypython
json_metadata{"tags":["python"],"app":"peakd/2022.01.2"}
created2022-01-28 09:35:57
last_update2022-01-28 09:35:57
depth1
children0
last_payout2022-02-04 09:35:57
cashout_time1969-12-31 23:59:59
total_payout_value0.032 HBD
curator_payout_value0.031 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length115
author_reputation93,649,081,579,233
root_title"Use Python to Discover Your Biggest Fans"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id109,923,065
net_rshares51,615,151,226
author_curate_reward""
vote details (1)