feat(Tweeper): Executable, pause before tweet

parent 982d93d8
#! /usr/bin/env python
import os import os
import time
import tweepy import tweepy
from didyoumean3.didyoumean import did_you_mean from didyoumean3.didyoumean import did_you_mean
...@@ -18,11 +19,13 @@ class Tweeper(object): ...@@ -18,11 +19,13 @@ class Tweeper(object):
def tweet(self, message): def tweet(self, message):
"""Tweets a message after spellchecking it.""" """Tweets a message after spellchecking it."""
message = did_you_mean(message) message = did_you_mean(message)
print("About to tweet:", message)
time.sleep(5)
self.api.update_status(message) self.api.update_status(message)
def main(): def main():
Tweeper().tweet("tête daffiche comme la cannelle") Tweeper().tweet("un pont de paris sen souvient sur de toi")
# Authenticate to Twitter # Authenticate to Twitter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment