#!/usr/bin/env python # Commandline twitter client by Akkana Peck. # Share and enjoy under the GPLv2 or later. import twitter import os # Read username and password execfile(os.path.join(os.environ["HOME"], ".twit")) # ANSI codes for turning the text colored or inverse. # Put your own favorite codes here. standout = "" standout_end = "" api = twitter.Api(username=username, password=passwd) entries = api.GetFriendsTimeline(username) for s in entries : # ignore user.profile_image_url for now print standout + s.user.name + standout_end, print "(", s.user.screen_name, ") :" print s.text print