Some code to check on the status of your followers.

in #utopian-io6 years ago (edited)

Advertisement.

Project Information

A python snippet to check the list of the people you are following optimized to reduce requests on the API nodes.

More detail in This Post

Do you lost control of your feed?

Project status:

It works nicely on the command line giving useful information.

672 | aytim           |    2.78 SP | posted    264 days ago, last voted:    264 days ago (LOOKS Dead)
673 | meridalionheart |    0.08 SP | posted     49 days ago, last voted:    117 days ago (LOOKS Dead)
674 | gersson         |   31.30 SP | posted    166 days ago, last voted:    166 days ago (LOOKS Dead)
675 | alxmuh          |    0.29 SP | posted    351 days ago, last voted:    343 days ago (LOOKS Dead)
676 | huslein.slash   |  187.86 SP | posted    159 days ago, last voted:    147 days ago (LOOKS Dead)
677 | aitrading.com   |    0.10 SP | posted    285 days ago, last voted:    285 days ago (LOOKS Dead)
678 | princesson      |    5.03 SP | posted     40 days ago, last voted:     40 days ago (LOOKS Dead)
679 | alphajiggy      |    0.08 SP | posted    130 days ago, last voted:    114 days ago (LOOKS Dead)
680 | rogaze          |    1.97 SP | posted     92 days ago, last voted:     87 days ago (LOOKS Dead)
681 | cuddleme        |    2.32 SP | posted    185 days ago, last voted:    178 days ago (LOOKS Dead)
682 | arlettekid      |    1.75 SP | posted     43 days ago, last voted:     39 days ago (LOOKS Dead)

Example output

Next steps maybe integrate into a discord bot to make it available for the non python wise (this will be done if there is feed back and interet from the community, and especially votes)

  • It shows how many days ago the person you are following voted or posted, and tells you their SP, we have seen cases where accounts are abandoned and powered down those belong to vote rings and other nasty stuff.

  • It also has a sub code set for following what you deem dead, this little program is specially useful when you are following thousands of authors.

  • It is nicely inline commented so you know what each stage of the code and the different loops do.

  • It throttles down initial node requests and then saves a local JSON file to work locally and avoid punching the nodes.

    # Let's get the user SP to see if he has not taken it all out
    # That is a good indicator he left
    
    followed_vs = float(str.split(u_r_following[followed]['vesting_shares'])[0])
    vestSteem = tvfs / tvs
    followed_sp = followed_vs * vestSteem      
    if delta_post > 10000:
        i = i + 1 # Increase the counter    
        print('{:003} | {:16}|{:8.02f}SP | never posted ( High SP = vote BOT or a Curator | Low SP = likely a fake account'.format(i,followed,followed_sp))    
    # Let's check for accounts that have gone dormant in the last X days 
    # (change l_c & l_v to fine tune)
    # Maybe a run of dormant during 60 days will give you a good indicator 
    # The user has left for good the platform.
    if delta_vote > l_v and l_c < delta_post < 10000: # looks dead to me
        i = i + 1 # Increase the counter
        print('{:003} | {:16}|{:8.02f} SP | posted {:6} days ago, last voted: {:6} days ago (LOOKS Dead)'.format(i,followed, followed_sp, delta_post,delta_vote))

    # Let's check for curators that never post but vote 
    # (sometimes these are fake accounts created to make small vote rings)
    # A good indicator this is a fake account would be that it is old and has almost no SP
    if delta_post > 10000:
            print('{:003} | {:16}|{:8.02f}SP | never posted ( High SP = vote BOT or a Curator | Low SP = likely a fake account'.format(followed,followed_sp))

GitHub Account

https://github.com/nnnarvaez

Sort:  

Hi there,

It's always good to have this kind of scripts/snippets to get to know your follower base. Using public RPC nodes to query/analyze that data feels good.

However, in development category we expect more than snippets in terms of volume of the work, reusability, etc.

Code doesn't follow PEP8, not reusable, not packaged. That's the nature of this kind of scripts but I still have to point out since these are the review metrics.


Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

So if i wrap it in a discord bot then it is good for utopian?

I don't think wrapping this into a Discord bot would change anything. :)

We review the posts with a pre-defined set of metrics. Code quality, reusability, commit messages, the volume of the work, presentation of the posts, license requirements, etc.

You can have a look at guidelines which includes a good amount of information for what's the best on Utopian's perspective.

Thanks i understood.

sorry for using your tags

No problem on that, cheers.

Hi man i dont understand i tought it was no good, and i got a vote?
well thanks : ) !

Thank you for your review, @emrebeyler! Keep up the good work!

Hi @nnnarvaez!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @nnnarvaez!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

You got a 60.48% upvote from @ocdb courtesy of @nnnarvaez! :)

@ocdb is a non-profit bidbot for whitelisted Steemians, current max bid is 45 SBD and the equivalent amount in STEEM.
Check our website https://thegoodwhales.io/ for the whitelist, queue and delegation info. Join our Discord channel for more information.

If you like what @ocd does, consider voting for ocd-witness through SteemConnect or on the Steemit Witnesses page. :)

Dear @nnnarvaez

I'm sorry for such a late reply. I wasn't sure how can I use knowledge you're sharing with me and I'm still asking my friends if they understand something about programming :)

I would like you to know that I really appreciate your time and effort.

Yours
Piotr

Nevermind man, i did it because i like coding, i saw you answered my other message were i asked what kind of results you wanted.

In the mean time i have moved on from steemit, i found a new born (1 year old) social blogchain called weku where my contributions are much better rewarded but i still can make those results for you...

I sent you an email as you requested but never heard back from you

Coin Marketplace

STEEM 0.24
TRX 0.25
JST 0.039
BTC 96247.25
ETH 3349.36
USDT 1.00
SBD 3.28