def main():
    '\n    connects the pieces to grab posts from reddit and throw them on twitter\n    '
    reddit = Reddit()
    twitter = Twitter()
    tweets = reddit.get_tweets()
    print('sending {} tweets'.format(len(tweets)))
    for tweet in reddit.get_tweets():
        status = twitter.send_tweet(tweet.Primary)
        if tweet.Second:
            twitter.send_tweet(tweet.Second, status.id)
        sleep(90)
connects the pieces to grab posts from reddit and throw them on twitter
def main():
    '\n    \n    '
    reddit = Reddit()
    twitter = Twitter()
    tweets = reddit.get_tweets()
    print('sending {} tweets'.format(len(tweets)))
    for tweet in reddit.get_tweets():
        status = twitter.send_tweet(tweet.Primary)
        if tweet.Second:
            twitter.send_tweet(tweet.Second, status.id)
        sleep(90)