Account Loop Ping
Script that adds time.
Script that get all the users on the system, sets their mins.
In [33]:
import os
import json
import socket
from TwitterFollowBot import TwitterBot
In [34]:
brobeurtw = TwitterBot('/home/wcmckee/github/wcmckee-notebook/config.txt')
In [ ]:
In [ ]:
In [2]:
myhn = socket.gethostname()
In [3]:
myhn
Out[3]:
In [ ]:
In [4]:
lisho = os.listdir('/home')
In [5]:
lisho
Out[5]:
In [6]:
usertimdict = dict()
In [25]:
#compdict = dict()
In [36]:
for ish in lisho:
#usertimdict.update({ish : 0})
compdict.update({myhn : {ish : 0}})
brobeurtw.send_tweet(ish)
In [27]:
#usertimdict
In [ ]:
In [31]:
jstim = json.dumps(compdict)
In [32]:
jstim
Out[32]:
In [22]:
opus = open('/home/wcmckee/sellcoffee/hostnames/' + myhn, 'w')
opus.write(jstim)
opus.close()
In [ ]:
In [ ]: