#SteemSilverGold Auto-Add Members

When I joined the SteemSilverGold community I was faced with a massive list of existing members to follow. The premise of the community is all members follow all members and collectively share and support one another's content about physical gold and silver and other related topics. There was no way in hell anyone was going to sit there for hours manually following a list. A quick Python script was the best alternative.


The pic above is a gold python, which I thought was appropriate for this post. Came from here; an article about the best possible use of a python.

Credit

Since I never coded anything in relation to Steemit before I went ahead and forked the f-4-f Python script by @chinadaily which can be found here. I haven't spoken to him about forking it so if there's an issue I'll take it down.

SteemSilverGold Members

I got this list from @pawos' post with the updated member list for the community. It's manually entered although I meant to set some time aside and have it as an import.

These members aren't alphabetical. You can alphabetize them as you wish. Add the new joins to it when @pawos updates the list of members.

Code

import time
from steem import Steem

account = 'youraccountgoeshere'

steem=Steem(keys='yourkeygoeshere')

members = ['@honestvalue','@hoss403','@htliao','@hydroconomist','@irfo1','@jameswhite',
'@jangaladesigns','@jdawg','@j0hndayt0n','@kabrink','@kingmoise','@lesvizable','@locos',
'@longshot','@lucky.digger','@lulita','@madein-hisimage','@maneco64','@marcfrvncis',
'@melke','@midastouch','@missiontothemoon','@mittenmetals','@motowngold',
'@nenio','@nolnocluap','@oleg326756','@ozmaga','@ozz','@pawos','@pearlcore',
'@phelimint','@raybrockman','@richard78624','@rolf.bakker','@ronnieramli','@roop',
'@runaway-slave','@sanction','@sevinwilson','@shenanigator','@silverbug','@silverdroneman',
'@silverfortune','@silverfuture','@silverino','@silvernova','@silverslayer','@sirknight',
'@sminchow','@speckofdust','@spicyer','@stackin','@stokjockey','@tbnfl4sun',
'@thecoolplayer','@thedamus','@theswede','@timitwist','@topslim','@traderyen',
'@tremendospercy','@tylersilver','@tzcap','@unclehermit','@underground','@walktothewater',
'@wickedlettuce','@famcore','@finkavenue','@gemstoned','@goldenarms','@goldgoatsnguns',
'@goldkey','@goldmatters','@greenstar','@gregmurphy','@grizzman','@guiltyparties',
'@handofzara','@harleymechanix','@hgmsilvergold','@hiphoplifer','@agscotskiwi','@ajain',
'@anothervoice','@bi5h0p','@blackrussian','@bola','@brian-debbie96','@buster544','@calam',
'@ckz','@coinquest','@coldpie','@collector4life','@coolbowser','@crowe','@cve3','@daadog',
'@displacer','@edthecanadian','@ereandthere','@ewspears','@agscotskiwi','@cve3','@phelimint']

def get_FollowedMembers(account, steem):
        list = []
        offset = ''
        while True:
                temp = steem.get_FollowedMembers(account, offset, 'blog', 100)
                if (len(temp) < 100):
                        list += temp
                        break

                offset = temp.pop()['FollowedMembers']
                list += temp

        FollowedMembers = [x['FollowedMembers'] for x in list]
        return FollowedMembers

for m in members:
    steem.follow(m, what=['blog'], account = account)
    print('Members ({}) added successfully!'.format(m))
    time.sleep(10)

Bandwidth

The reason I didn't bother doing anything with those already followed is because re-following doesn't particularly matter.

Each follow transaction seems to take off 0.05% off my bandwidth at a current 48 SP and 62 VP. This is with the sleep timer at 10 seconds. Setting it slightly higher will completely eliminate the bandwidth concern. The recharge speed nearly matches the discharge speed at 10 second intervals and the effect is thus negligible.

Use

There are a lot of posts on how to run a Python script and Python in general so I won't bother going over that here. Ask in the comments if you need extra help.


vet_for_edit_extrasmall.png

H2
H3
H4
3 columns
2 columns
1 column
9 Comments