My Simple Python based Bot Tracker

in #steem9 years ago (edited)

I've written a simple bot tracker in Python, which you can download from

https://github.com/HamidMushtaq/steemtools/blob/master/steemdbtracker.py

You can use it by typing python steemdbtracker.py on the command line.

Since it is based on simple web crawling of the steemdb site, it could take several seconds before you can see the output. In the future I would try to make a better program which directly uses the steemit APIs.

In the program, you would notice the following declaration at the top. If you want to add another bot, you can simply add it to this list.

bots = [ "boomerang", "sneaky-ninja", "voter", "pushup", "lovejuice", "buildawhale", "minnowhelper", "booster", "discordia", "upgoater", "appreciator", "sleeplesswhale" ]

If I run the program, I get something like this,

======================================================

boomerang: 98.10% 0.0/22.4366 (0 %) SBD transfered

appreciator: 98.11% 0.0/189.2688 (0 %) SBD transfered

pushup: 98.19% 1.1/3.4659 (31 %) SBD transfered
slavix: 1 SBD for https://steemit.com/politics/@slavix/us-has-more-troops-in-iraq-and-syria-than-official-figures-report
redouanemez: 0.100 SBD for https://steemit.com/life/@redouanemez/the-secrets-of-success-in-8-words

buildawhale: 98.22% 0.0/198.1796 (0 %) SBD transfered

booster: 98.32% 15.0/72.7414 (20 %) SBD transfered
cuttie1979: 10 SBD for https://steemit.com/travel/@cuttie1979/travel-memories-golden-gate-bridge-in-san-francisco-usa
kam.ila: 5 SBD for https://steemit.com/art/@kam.ila/miami-s-art-wynwood-neighborhoods

lovejuice: 98.62% 0.0/1.5741 (0 %) SBD transfered

voter: 98.87% 0.0/0.5759 (0 %) SBD transfered

sneaky-ninja: 98.92% 0.18/2.0405 (8 %) SBD transfered
tstinfo: 0.180 SBD for https://steemit.com/travel/@tstinfo/2vcuqz-love-love-love-taghit-love-love-love-moto

upgoater: 99.24% 0.1/2.0536 (4 %) SBD transfered
farhannaqvi7: 0.100 SBD for https://steemit.com/art/@farhannaqvi7/vigeland-sculpture-park

minnowhelper: 99.41% 0.0/4.7917 (0 %) SBD transfered

discordia: 99.88% 0.35/1.6837 (20 %) SBD transfered
yadamaniart: 0.100 SBD for https://steemit.com/art/@yadamaniart/3vxkhz-20171128
freeinthought: 0.250 SBD for https://steemit.com/poetry/@freeinthought/into-the-fire-and-out-of-troubles

sleeplesswhale: 100.00% 0.0/0.9832 (0 %) SBD transfered

======================================================

So, what does a line like pushup: 98.19% 1.1/3.4659 (31 %) SBD transferred mean? Here 98.19% is the current voting power of the bot pushup while 1.1 is the amount of SBDs transferred in the current round. 3.4659 is the approximate vote value. And finally 31% is the percentage of SBDs transferred relative to the vote value. Below that line, you can also see all the transfers with user names and post links. This is something that https://s3.amazonaws.com/yabapmatt/bottracker/bottracker.html does not show. Also, that site doesn't show the percentage of transfers relative to the vote value.

Note that my program is not 100% accurate. For example, I calculate the vote value by dividing Steem power by 10,000. This is something I got from https://steemnow.com/upvotecalc.html, as I notice that each 10,000 Steem power there, amounts to approximately 1 SBD of vote value. Secondly, the way I see transfers in a round is to see the last time the bot upvoted. Only transfers after that last vote are counted. But it could be that somebody transferred SBDs, while the bot was upvoting. In that case, my program will miss those transfers. You can always double check with https://s3.amazonaws.com/yabapmatt/bottracker/bottracker.html. However, I've noticed that even that site is not fully accurate. So, in the future, I would really like to create a highly accurate bot tracker!

I would like you to try my program and share your experience. Secondly, what improvements can I make to this program to make it better? Your suggestions would be much appreciated.

Sort:  

Interesting post thanks for sharing@hmushtaq

Thanks Hamza. I would like you to try the tool and share your experience. Also I would like suggestions on how it can be improved.

Interesting post! I think in the future using libraries like requests and beautifulsoup would make scraping data easier for you.

Will check those, sure :)

This post received a 4% upvote from @morwhale team thanks to @hmushtaq! For more information, click here! , TeamMorocco! .

The @OriginalWorks bot has determined this post by @hmushtaq to be original material and upvoted(1.5%) it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

This post has received a 100.00 % upvote from @msp-bidbot thanks to: @hmushtaq.
Delegate SP to this public bot and get paid daily: 50SP, 100SP, 250SP,500SP, 1000SP,5000SP Don't delegate so much that you have less than 50SP left on your account.

This post has received a 25.00 % upvote from @kittybot thanks to: @hmushtaq.

This post has received a 25.00 % upvote from @upgoater thanks to: @hmushtaq.

Coin Marketplace

STEEM 0.05
TRX 0.33
JST 0.082
BTC 62530.03
ETH 1633.28
USDT 1.00
SBD 0.44