"""
Colorful user's timeline stream
"""
+from __future__ import print_function
+from multiprocessing import Process
+from dateutil import parser
+
import os
import os.path
import sys
import time
import datetime
-from __future__ import print_function
-from multiprocessing import Process
-from dateutil import parser
-
from twitter.stream import TwitterStream, Timeout, HeartbeatTimeout, Hangup
from twitter.api import *
from twitter.oauth import OAuth, read_token_file
Beginning of every line
"""
t = Twitter(auth=authen())
- name = '@' + t.statuses.user_timeline()[-1]['user']['screen_name']
+ name = '@' + t.account.verify_credentials()['screen_name']
g['decorated_name'] = grey('[') + grey(name) + grey(']: ')
"""
usage = '''
Hi boss! I'm ready to serve you right now!
- ----------------------------------------------------
+ -------------------------------------------------------------
"home" will show your timeline. "home 7" will show 7 tweet.
"view @bob" will show your friend @bob's home.
"t oops" will tweet "oops" immediately.
"h" will show this help again.
"c" will clear the terminal.
"q" will exit.
- ----------------------------------------------------
+ -------------------------------------------------------------
Have fun and hang tight!
'''
printNicely(usage)
"""
Exit all
"""
- db.truncate()
+ os.system('rm -rf rainbow.db')
os.kill(g['stream_pid'], signal.SIGKILL)
sys.exit()
# The Logo
ascii_art()
- g['stuff'] = '1'
- home()
# These arguments are optional:
stream_args = dict(
timeout=args.timeout,