brobeurtweet
BroBeur Tweet
Sends tweets for brobeur
In [12]:
from TwitterFollowBot import TwitterBot
import praw
import random
import tweepy
In [14]:
my_bot = TwitterBot()
In [3]:
r = praw.Reddit('brobeurtweet')
In [4]:
subredz = ['DevBlogs', 'gamedev', 'gamejams', 'Games', 'gaming']
In [5]:
randsubrepo = random.choice(subredz)
In [6]:
hashthi = ('#' + randsubrepo)
In [7]:
rgvz = r.get_subreddit(randsubrepo)
In [8]:
rgtnew = rgvz.get_new
In [9]:
ransub = rgvz.get_random_submission()
In [10]:
rantit = ransub.title
In [ ]:
In [11]:
randurl = ransub.url
In [12]:
my_bot.send_tweet(rantit + ' ' + randurl + ' ' + hashthi)
Out[12]:
In [13]:
my_bot.auto_rt("#gamejams", count=1)
In [67]:
my_bot.auto_follow("#gamedev", count=1)
In [ ]:
Comments
Comments powered by Disqus